Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: cc/TiledLayerChromium.cpp

Issue 11074009: cc: Remove LayerTextureUpdater::Texture::updateRect() callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/TiledLayerChromium.cpp
diff --git a/cc/TiledLayerChromium.cpp b/cc/TiledLayerChromium.cpp
index 1ab8f62eefb5ec6533199b15d342aadcab7ee23d..b113b2b91f5d99989d2c29566a624b2a90d938f0 100644
--- a/cc/TiledLayerChromium.cpp
+++ b/cc/TiledLayerChromium.cpp
@@ -521,10 +521,6 @@ void TiledLayerChromium::updateTileTextures(const IntRect& paintRect, int left,
if (sourceRect.isEmpty())
continue;
- tile->texture()->prepareRect(sourceRect, stats);
- if (occlusion)
- occlusion->overdrawMetrics().didUpload(WebTransformationMatrix(), sourceRect, tile->opaqueRect());
-
const IntPoint anchor = m_tiler->tileRect(tile).location();
// Calculate tile-space rectangle to upload into.
@@ -545,11 +541,10 @@ void TiledLayerChromium::updateTileTextures(const IntRect& paintRect, int left,
if (paintOffset.y() + sourceRect.height() > paintRect.height())
CRASH();
- TextureUploader::Parameters upload = { tile->texture(), sourceRect, destOffset };
- if (tile->partialUpdate)
- queue.appendPartialUpload(upload);
- else
- queue.appendFullUpload(upload);
+ tile->texture()->update(queue, sourceRect, destOffset, tile->partialUpdate, stats);
+ if (occlusion)
+ occlusion->overdrawMetrics().didUpload(WebTransformationMatrix(), sourceRect, tile->opaqueRect());
+
}
}
}

Powered by Google App Engine
This is Rietveld 408576698