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

Unified Diff: cc/resources/picture_pile_base.cc

Issue 519583003: Use the solid color detection to create solid layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final merge Created 6 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 | « cc/resources/picture_pile_base.h ('k') | cc/resources/picture_pile_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile_base.cc
diff --git a/cc/resources/picture_pile_base.cc b/cc/resources/picture_pile_base.cc
index 447d1b34c25e778f532c21cc8f0997de9dd74446..d850e4150be32c6d3805a1238b641469ecae5600 100644
--- a/cc/resources/picture_pile_base.cc
+++ b/cc/resources/picture_pile_base.cc
@@ -49,7 +49,9 @@ PicturePileBase::PicturePileBase()
clear_canvas_with_debug_color_(kDefaultClearCanvasSetting),
has_any_recordings_(false),
has_text_(false),
- is_mask_(false) {
+ is_mask_(false),
+ is_solid_color_(false),
+ solid_color_(SK_ColorTRANSPARENT) {
tiling_.SetMaxTextureSize(gfx::Size(kBasePictureSize, kBasePictureSize));
tile_grid_info_.fTileInterval.setEmpty();
tile_grid_info_.fMargin.setEmpty();
@@ -71,7 +73,9 @@ PicturePileBase::PicturePileBase(const PicturePileBase* other)
clear_canvas_with_debug_color_(other->clear_canvas_with_debug_color_),
has_any_recordings_(other->has_any_recordings_),
has_text_(other->has_text_),
- is_mask_(other->is_mask_) {
+ is_mask_(other->is_mask_),
+ is_solid_color_(other->is_solid_color_),
+ solid_color_(other->solid_color_) {
}
PicturePileBase::~PicturePileBase() {
« no previous file with comments | « cc/resources/picture_pile_base.h ('k') | cc/resources/picture_pile_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698