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

Unified Diff: chrome/browser/ui/views/location_bar/background_with_1_px_border.cc

Issue 2697663002: Clean up naming of paint-related identifiers (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
Index: chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
diff --git a/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc b/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
index ad0463e4391cc3805ce86025f9bc460c8a8ba54a..136846a656be45d5bbcd1319c544fbcc9ddb131d 100644
--- a/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
+++ b/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
@@ -40,20 +40,20 @@ void BackgroundWith1PxBorder::Paint(gfx::Canvas* canvas,
path.addRoundRect(gfx::RectFToSkRect(border_rect_f), scaled_corner_radius,
scaled_corner_radius);
- cc::PaintFlags paint;
- paint.setStyle(cc::PaintFlags::kStroke_Style);
- paint.setStrokeWidth(1);
- paint.setAntiAlias(true);
+ cc::PaintFlags flags;
+ flags.setStyle(cc::PaintFlags::kStroke_Style);
+ flags.setStrokeWidth(1);
+ flags.setAntiAlias(true);
SkPath stroke_path;
- paint.getFillPath(path, &stroke_path);
+ flags.getFillPath(path, &stroke_path);
SkPath fill_path;
Op(path, stroke_path, kDifference_SkPathOp, &fill_path);
- paint.setStyle(cc::PaintFlags::kFill_Style);
- paint.setColor(get_color());
- canvas->sk_canvas()->drawPath(fill_path, paint);
+ flags.setStyle(cc::PaintFlags::kFill_Style);
+ flags.setColor(get_color());
+ canvas->sk_canvas()->drawPath(fill_path, flags);
- paint.setColor(border_color_);
- canvas->sk_canvas()->drawPath(stroke_path, paint);
+ flags.setColor(border_color_);
+ canvas->sk_canvas()->drawPath(stroke_path, flags);
}
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_container_view.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698