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

Unified Diff: cc/resources/picture_pile_base.h

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.cc ('k') | cc/resources/picture_pile_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile_base.h
diff --git a/cc/resources/picture_pile_base.h b/cc/resources/picture_pile_base.h
index fb6cf5f029bdd55f8b3a01d550886c431b59d54e..1067c3ec36f88b3dd5b725d6dee53dd719b6b8ff 100644
--- a/cc/resources/picture_pile_base.h
+++ b/cc/resources/picture_pile_base.h
@@ -51,6 +51,9 @@ class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
// If this pile has ever contained any recordings with text.
bool has_text() const { return has_text_; }
+ bool is_solid_color() const { return is_solid_color_; }
+ SkColor solid_color() const { return solid_color_; }
+
void set_is_mask(bool is_mask) { is_mask_ = is_mask; }
bool is_mask() const { return is_mask_; }
@@ -123,6 +126,8 @@ class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
bool has_any_recordings_;
bool has_text_;
bool is_mask_;
+ bool is_solid_color_;
+ SkColor solid_color_;
private:
void SetBufferPixels(int buffer_pixels);
« no previous file with comments | « cc/resources/picture_pile.cc ('k') | cc/resources/picture_pile_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698