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

Unified Diff: cc/trees/layer_tree_host_pixeltest_tiles.cc

Issue 2678903003: cc: Clean up naming of paint-related identifiers (Closed)
Patch Set: 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
Index: cc/trees/layer_tree_host_pixeltest_tiles.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_tiles.cc b/cc/trees/layer_tree_host_pixeltest_tiles.cc
index 0a279c0e7a009f2c1ff3f13a60a7cdf5a1dc9cd6..6eaa10aa9584a52e9a5e13458f47df043b54814a 100644
--- a/cc/trees/layer_tree_host_pixeltest_tiles.cc
+++ b/cc/trees/layer_tree_host_pixeltest_tiles.cc
@@ -122,13 +122,13 @@ class BlueYellowClient : public ContentLayerClient {
gfx::Rect blue_rect = blue_top_ ? top : bottom;
gfx::Rect yellow_rect = blue_top_ ? bottom : top;
- PaintFlags paint;
- paint.setStyle(PaintFlags::kFill_Style);
+ PaintFlags flags;
+ flags.setStyle(PaintFlags::kFill_Style);
- paint.setColor(SK_ColorBLUE);
- canvas->drawRect(gfx::RectToSkRect(blue_rect), paint);
- paint.setColor(SK_ColorYELLOW);
- canvas->drawRect(gfx::RectToSkRect(yellow_rect), paint);
+ flags.setColor(SK_ColorBLUE);
+ canvas->drawRect(gfx::RectToSkRect(blue_rect), flags);
+ flags.setColor(SK_ColorYELLOW);
+ canvas->drawRect(gfx::RectToSkRect(yellow_rect), flags);
display_list->CreateAndAppendDrawingItem<DrawingDisplayItem>(
PaintableRegion(), recorder.finishRecordingAsPicture());

Powered by Google App Engine
This is Rietveld 408576698