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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 1531013004: cc: Do solid color analysis before scheduling tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup. Created 5 years 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/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index 405d68590da67bd73005aa601c48c66c0ad97627..f3012a1591a726e69edce32ebfe72cf94c3854f2 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -652,11 +652,6 @@ Region PictureLayerImpl::GetInvalidationRegion() {
ScopedTilePtr PictureLayerImpl::CreateTile(const Tile::CreateInfo& info) {
int flags = 0;
- // We don't handle solid color masks, so we shouldn't bother analyzing those.
- // Otherwise, always analyze to maximize memory savings.
- if (!is_mask_)
- flags = Tile::USE_PICTURE_ANALYSIS;
vmpstr 2015/12/29 21:24:23 We should keep respecting this flag, since it woul
sohanjg 2015/12/30 12:45:47 Acknowledged.
-
if (contents_opaque())
flags |= Tile::IS_OPAQUE;

Powered by Google App Engine
This is Rietveld 408576698