diff options
author | Chris Craik <ccraik@google.com> | 2012-02-15 13:26:22 -0800 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-02-16 13:26:20 -0800 |
commit | 92a7e4bc6b67b150cbb30f78374173ecfeb43607 (patch) | |
tree | cee0719ef12e63b17ad4711b7e4bd79d5a82669c /Source/WebCore/platform/graphics/android/TilesProfiler.cpp | |
parent | 3410ffc0890f04ba9ca38573ab37c309b4aff5bd (diff) | |
download | external_webkit-92a7e4bc6b67b150cbb30f78374173ecfeb43607.zip external_webkit-92a7e4bc6b67b150cbb30f78374173ecfeb43607.tar.gz external_webkit-92a7e4bc6b67b150cbb30f78374173ecfeb43607.tar.bz2 |
simplify texture generation filters
Filters can no longer block, which removes the need for transfer queue
interruption. The filter no longer touches the currently painting tile.
Tiles are now all ref-counted to accomodate the container being deleted while
one of its tiles is still painting.
Change-Id: Iaa4848665efdf90846defb0a53bf1ea013b8421b
Diffstat (limited to 'Source/WebCore/platform/graphics/android/TilesProfiler.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/TilesProfiler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/WebCore/platform/graphics/android/TilesProfiler.cpp b/Source/WebCore/platform/graphics/android/TilesProfiler.cpp index 0271ee3..d422904 100644 --- a/Source/WebCore/platform/graphics/android/TilesProfiler.cpp +++ b/Source/WebCore/platform/graphics/android/TilesProfiler.cpp @@ -103,14 +103,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(); @@ -122,7 +122,7 @@ 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())); XLOG("adding tile %d %d %d %d, scale %f", left, top, right, bottom, scale); } |