summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/TilesProfiler.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-03-14 16:43:27 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2012-03-22 16:01:22 -0700
commit885e650b12d781be054b31ae6221925a0184dc33 (patch)
tree506c80fd82f092a9c0601702230909c4a7ef6c95 /Source/WebCore/platform/graphics/android/TilesProfiler.cpp
parent6aea92fd5ffd5a43b1c13769be9a16202f498b59 (diff)
downloadexternal_webkit-885e650b12d781be054b31ae6221925a0184dc33.zip
external_webkit-885e650b12d781be054b31ae6221925a0184dc33.tar.gz
external_webkit-885e650b12d781be054b31ae6221925a0184dc33.tar.bz2
reimplement BaseLayerAndroid as a LayerAndroid subclass
Breaks low res tiling, and expanded rendering bounds. Change-Id: Iec3ba2adceb6bd95399594d29fd8c0b18c1122ce
Diffstat (limited to 'Source/WebCore/platform/graphics/android/TilesProfiler.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/TilesProfiler.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/WebCore/platform/graphics/android/TilesProfiler.cpp b/Source/WebCore/platform/graphics/android/TilesProfiler.cpp
index a113514..2cc6873 100644
--- a/Source/WebCore/platform/graphics/android/TilesProfiler.cpp
+++ b/Source/WebCore/platform/graphics/android/TilesProfiler.cpp
@@ -92,14 +92,14 @@ void TilesProfiler::nextFrame(int left, int top, int right, int bottom, float sc
scale, true, (int)(timeDelta * 1000)));
}
-void TilesProfiler::nextTile(BaseTile& tile, float scale, bool inView)
+void TilesProfiler::nextTile(BaseTile* tile, float scale, bool inView)
{
if (!m_enabled || (m_records.size() > MAX_PROF_FRAMES) || (m_records.size() == 0))
return;
- bool isReady = tile.isTileReady();
- int left = tile.x() * TilesManager::tileWidth();
- int top = tile.y() * TilesManager::tileWidth();
+ bool isReady = tile->isTileReady();
+ int left = tile->x() * TilesManager::tileWidth();
+ int top = tile->y() * TilesManager::tileWidth();
int right = left + TilesManager::tileWidth();
int bottom = top + TilesManager::tileWidth();
@@ -111,20 +111,20 @@ void TilesProfiler::nextTile(BaseTile& tile, float scale, bool inView)
}
m_records.last().append(TileProfileRecord(
left, top, right, bottom,
- scale, isReady, (int)tile.drawCount()));
+ scale, isReady, (int)tile->drawCount()));
ALOGV("adding tile %d %d %d %d, scale %f", left, top, right, bottom, scale);
}
-void TilesProfiler::nextInval(const IntRect& rect, float scale)
+void TilesProfiler::nextInval(const SkIRect& rect, float scale)
{
if (!m_enabled || (m_records.size() > MAX_PROF_FRAMES) || (m_records.size() == 0))
return;
m_records.last().append(TileProfileRecord(
rect.x(), rect.y(),
- rect.maxX(), rect.maxY(), scale, false, INVAL_CODE));
+ rect.right(), rect.bottom(), scale, false, INVAL_CODE));
ALOGV("adding inval region %d %d %d %d, scale %f", rect.x(), rect.y(),
- rect.maxX(), rect.maxY(), scale);
+ rect.right(), rect.bottom(), scale);
}
} // namespace WebCore