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

Unified Diff: components/test_runner/pixel_dump.cc

Issue 2682813002: components: 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
« no previous file with comments | « components/test_runner/mock_web_theme_engine.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/pixel_dump.cc
diff --git a/components/test_runner/pixel_dump.cc b/components/test_runner/pixel_dump.cc
index 508bda2ff0c455d33b361fcb2fd003c4f70a6750..6b47a14ec2dccaece023ed63ee0579bffbf10e24 100644
--- a/components/test_runner/pixel_dump.cc
+++ b/components/test_runner/pixel_dump.cc
@@ -78,14 +78,14 @@ void DrawSelectionRect(const PixelsDumpRequest& dump_request,
if (wr.isEmpty())
return;
// Render a red rectangle bounding selection rect
- cc::PaintFlags paint;
- paint.setColor(0xFFFF0000); // Fully opaque red
- paint.setStyle(cc::PaintFlags::kStroke_Style);
- paint.setAntiAlias(true);
- paint.setStrokeWidth(1.0f);
+ cc::PaintFlags flags;
+ flags.setColor(0xFFFF0000); // Fully opaque red
+ flags.setStyle(cc::PaintFlags::kStroke_Style);
+ flags.setAntiAlias(true);
+ flags.setStrokeWidth(1.0f);
SkIRect rect; // Bounding rect
rect.set(wr.x, wr.y, wr.x + wr.width, wr.y + wr.height);
- canvas->drawIRect(rect, paint);
+ canvas->drawIRect(rect, flags);
}
void CapturePixelsForPrinting(std::unique_ptr<PixelsDumpRequest> dump_request) {
« no previous file with comments | « components/test_runner/mock_web_theme_engine.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698