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

Unified Diff: cc/trees/layer_tree_host_pixeltest_filters.cc

Issue 2710153004: cc: Fix up code to work with concrete cc paint types (Closed)
Patch Set: Rebase Created 3 years, 10 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/test/skia_common.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_pixeltest_filters.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_filters.cc b/cc/trees/layer_tree_host_pixeltest_filters.cc
index 5190efd4ac0ad4b5d7674fec844b891d93687129..1f5f2b7361affe2ae9c9d0fa43b58a89e85a2a03 100644
--- a/cc/trees/layer_tree_host_pixeltest_filters.cc
+++ b/cc/trees/layer_tree_host_pixeltest_filters.cc
@@ -770,11 +770,11 @@ class TranslatedFilterTest : public LayerTreeHostFiltersPixelTest {
// This is intended to test render pass removal optimizations.
FakeContentLayerClient client;
client.set_bounds(child_rect.size());
- SkPaint paint;
- paint.setColor(SK_ColorGREEN);
- client.add_draw_rect(child_rect, paint);
- paint.setColor(SK_ColorBLUE);
- client.add_draw_rect(gfx::Rect(100, 50), paint);
+ PaintFlags flags;
+ flags.setColor(SK_ColorGREEN);
+ client.add_draw_rect(child_rect, flags);
+ flags.setColor(SK_ColorBLUE);
+ client.add_draw_rect(gfx::Rect(100, 50), flags);
scoped_refptr<PictureLayer> child = PictureLayer::Create(&client);
child->SetBounds(child_rect.size());
child->SetIsDrawable(true);
« no previous file with comments | « cc/test/skia_common.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698