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

Unified Diff: cc/tiles/tile_manager.cc

Issue 1892573003: cc: Disable image hijack canvas when tiles don't have images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/playback/raster_source.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager.cc
diff --git a/cc/tiles/tile_manager.cc b/cc/tiles/tile_manager.cc
index e2f362d4ed457eb0bd8eaea353a57514ed3933b2..cabc5d286c20ec10a333c4f46b3f2e635f149822 100644
--- a/cc/tiles/tile_manager.cc
+++ b/cc/tiles/tile_manager.cc
@@ -880,9 +880,8 @@ scoped_refptr<RasterTask> TileManager::CreateRasterTask(
tile->enclosing_layer_rect(), tile->contents_scale(), &images);
}
- // TODO(vmpstr): We should disable image hijack canvas in
- // |playback_settings| here if |images| is empty.
-
+ // We can skip the image hijack canvas if we have no images.
+ playback_settings.use_image_hijack_canvas = !images.empty();
for (auto it = images.begin(); it != images.end();) {
scoped_refptr<ImageDecodeTask> task;
bool need_to_unref_when_finished =
« no previous file with comments | « cc/playback/raster_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698