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

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: remove unused variable 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
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 cc8ddb6f8445862a74dc046e2eaac818e9e839fa..9ca4fdae1ce753592635d235b3a5495ea2e4bb40 100644
--- a/cc/test/fake_content_layer_client.h
+++ b/cc/test/fake_content_layer_client.h
@@ -36,6 +36,9 @@ class FakeContentLayerClient : public ContentLayerClient {
virtual bool FillsBoundsCompletely() const OVERRIDE;
void set_paint_all_opaque(bool opaque) { paint_all_opaque_ = opaque; }
+ 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));
@@ -62,6 +65,7 @@ class FakeContentLayerClient : public ContentLayerClient {
typedef std::vector<BitmapData> BitmapVector;
bool paint_all_opaque_;
+ bool fill_with_nonsolid_color_;
RectPaintVector draw_rects_;
BitmapVector draw_bitmaps_;
SkCanvas* last_canvas_;

Powered by Google App Engine
This is Rietveld 408576698