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

Unified Diff: cc/test/fake_content_layer_client.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_unittest.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_content_layer_client.h
diff --git a/cc/test/fake_content_layer_client.h b/cc/test/fake_content_layer_client.h
index c206c89380d2050ea9726489fff4bd7c68339b9b..ae0ebdd8d6c1603c19db8a056b7c9a1e0c786272 100644
--- a/cc/test/fake_content_layer_client.h
+++ b/cc/test/fake_content_layer_client.h
@@ -34,6 +34,10 @@ class FakeContentLayerClient : public ContentLayerClient {
virtual void DidChangeLayerCanUseLCDText() OVERRIDE {}
virtual bool FillsBoundsCompletely() const OVERRIDE;
+ void set_fill_with_nonsolid_color(bool nonsolid) {
+ fill_with_nonsolid_color_ = nonsolid;
+ }
+
void add_draw_rect(const gfx::RectF& rect, const SkPaint& paint) {
draw_rects_.push_back(std::make_pair(rect, paint));
}
@@ -58,6 +62,7 @@ class FakeContentLayerClient : public ContentLayerClient {
typedef std::vector<std::pair<gfx::RectF, SkPaint> > RectPaintVector;
typedef std::vector<BitmapData> BitmapVector;
+ bool fill_with_nonsolid_color_;
RectPaintVector draw_rects_;
BitmapVector draw_bitmaps_;
SkCanvas* last_canvas_;
« no previous file with comments | « cc/resources/picture_pile_unittest.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698