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

Unified Diff: cc/resources/picture_pile.h

Issue 494503002: Expose IsSolidColor and write units tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a mac specific build break Created 6 years, 4 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.cc ('k') | cc/resources/picture_pile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile.h
diff --git a/cc/resources/picture_pile.h b/cc/resources/picture_pile.h
index 4b6119297622e05929e79ab5298b8cb0c259cc22..87ea4876bdbb7660f9795efeca3ae71eb4740cf0 100644
--- a/cc/resources/picture_pile.h
+++ b/cc/resources/picture_pile.h
@@ -51,13 +51,20 @@ class CC_EXPORT PicturePile : public PicturePileBase {
is_suitable_for_gpu_rasterization_ = false;
}
+ bool IsSolidColor() const { return is_solid_color_; }
+ SkColor GetSolidColor() const { return solid_color_; }
+
protected:
virtual ~PicturePile();
private:
friend class PicturePileImpl;
+ void DetermineIfSolidColor();
+
bool is_suitable_for_gpu_rasterization_;
+ bool is_solid_color_;
+ SkColor solid_color_;
DISALLOW_COPY_AND_ASSIGN(PicturePile);
};
« no previous file with comments | « cc/resources/picture.cc ('k') | cc/resources/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698