Index: cc/layers/picture_layer_impl.cc |
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc |
index 1f8e5a88aaf240695897dd27c9c31e488a225be6..ac4abe994353cac8f962a3e2e8c662025e6d111d 100644 |
--- a/cc/layers/picture_layer_impl.cc |
+++ b/cc/layers/picture_layer_impl.cc |
@@ -582,12 +582,16 @@ scoped_refptr<Tile> PictureLayerImpl::CreateTile(PictureLayerTiling* tiling, |
if (!pile_->CanRaster(tiling->contents_scale(), content_rect)) |
return scoped_refptr<Tile>(); |
+ int flags = 0; |
+ |
// TODO(vmpstr): Revisit this. For now, enabling analysis means that we get as |
// much savings on memory as we can. However, for some cases like ganesh or |
// small layers, the amount of time we spend analyzing might not justify |
- // memory savings that we can get. |
+ // memory savings that we can get. Note that we don't handle solid color |
+ // masks, so we shouldn't bother analyzing those. |
// Bugs: crbug.com/397198, crbug.com/396908 |
- int flags = Tile::USE_PICTURE_ANALYSIS; |
+ if (!is_mask_) |
+ flags = Tile::USE_PICTURE_ANALYSIS; |
return layer_tree_impl()->tile_manager()->CreateTile( |
pile_.get(), |