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

Unified Diff: cc/tiled_layer.cc

Issue 11074009: cc: Remove LayerTextureUpdater::Texture::updateRect() callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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
« no previous file with comments | « cc/throttled_texture_uploader_unittest.cc ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiled_layer.cc
diff --git a/cc/tiled_layer.cc b/cc/tiled_layer.cc
index f2219e624fe7189ded6505c913ae683e0efbe19f..4fa7ed4129342c5d6e9b6759820311c47804090a 100644
--- a/cc/tiled_layer.cc
+++ b/cc/tiled_layer.cc
@@ -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());
+
}
}
}
« no previous file with comments | « cc/throttled_texture_uploader_unittest.cc ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698