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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 1351283003: Allow task pools to reason about transparency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make StagingBuffer constructor non-explicit Created 5 years, 3 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 | « no previous file | cc/raster/bitmap_tile_task_worker_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index 740555f9f442773bbfe00af2525ebdbd9aa219b5..b7b6b82eade51546e5eb23ed4466b629b7a6b187 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -642,6 +642,9 @@ ScopedTilePtr PictureLayerImpl::CreateTile(const Tile::CreateInfo& info) {
if (!is_mask_)
flags = Tile::USE_PICTURE_ANALYSIS;
+ if (contents_opaque())
+ flags |= Tile::IS_OPAQUE;
+
return layer_tree_impl()->tile_manager()->CreateTile(
info, id(), layer_tree_impl()->source_frame_number(), flags);
}
« no previous file with comments | « no previous file | cc/raster/bitmap_tile_task_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698