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

Unified Diff: cc/trees/layer_tree_host_unittest_context.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
« cc/layers/layer.h ('K') | « cc/trees/layer_tree_host_pixeltest_tiles.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_context.cc
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
index a8b70867b55e92b9f1a8589c598e2f60626ddd3f..f59b200bedaa10b3585f9e807797aba115ea62e4 100644
--- a/cc/trees/layer_tree_host_unittest_context.cc
+++ b/cc/trees/layer_tree_host_unittest_context.cc
@@ -610,9 +610,9 @@ class LayerTreeHostContextTestLostContextSucceedsWithContent
root_->SetIsDrawable(true);
// Paint non-solid color.
- PaintFlags paint;
- paint.setColor(SkColorSetARGB(100, 80, 200, 200));
- client_.add_draw_rect(gfx::Rect(5, 5), paint);
+ PaintFlags flags;
+ flags.setColor(SkColorSetARGB(100, 80, 200, 200));
+ client_.add_draw_rect(gfx::Rect(5, 5), flags);
layer_ = FakePictureLayer::Create(&client_);
layer_->SetBounds(gfx::Size(10, 10));
@@ -689,9 +689,9 @@ class LayerTreeHostContextTestLostContextAndEvictTextures
void SetupTree() override {
// Paint non-solid color.
- PaintFlags paint;
- paint.setColor(SkColorSetARGB(100, 80, 200, 200));
- client_.add_draw_rect(gfx::Rect(5, 5), paint);
+ PaintFlags flags;
+ flags.setColor(SkColorSetARGB(100, 80, 200, 200));
+ client_.add_draw_rect(gfx::Rect(5, 5), flags);
scoped_refptr<FakePictureLayer> picture_layer =
FakePictureLayer::Create(&client_);
@@ -1603,9 +1603,9 @@ class LayerTreeHostContextTestLoseWorkerContextDuringPrepareTiles
: public LayerTreeTest {
protected:
void SetupTree() override {
- PaintFlags paint;
+ PaintFlags flags;
client_.set_fill_with_nonsolid_color(true);
- client_.add_draw_rect(gfx::Rect(5, 5), paint);
+ client_.add_draw_rect(gfx::Rect(5, 5), flags);
scoped_refptr<FakePictureLayer> picture_layer =
FakePictureLayer::Create(&client_);
« cc/layers/layer.h ('K') | « cc/trees/layer_tree_host_pixeltest_tiles.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698