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

Unified Diff: ui/views/round_rect_painter.cc

Issue 2680943002: ui: 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 | « ui/views/painter.cc ('k') | ui/views/shadow_border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/round_rect_painter.cc
diff --git a/ui/views/round_rect_painter.cc b/ui/views/round_rect_painter.cc
index 20869c7f96ab9dbb96fb3785f2b3ff17ae13f94e..058cc97fe5f70d6e6d2ddcce60de26028015a5cb 100644
--- a/ui/views/round_rect_painter.cc
+++ b/ui/views/round_rect_painter.cc
@@ -24,17 +24,17 @@ gfx::Size RoundRectPainter::GetMinimumSize() const {
}
void RoundRectPainter::Paint(gfx::Canvas* canvas, const gfx::Size& size) {
- cc::PaintFlags paint;
- paint.setColor(border_color_);
- paint.setStyle(cc::PaintFlags::kStroke_Style);
- paint.setStrokeWidth(kBorderWidth);
- paint.setAntiAlias(true);
+ cc::PaintFlags flags;
+ flags.setColor(border_color_);
+ flags.setStyle(cc::PaintFlags::kStroke_Style);
+ flags.setStrokeWidth(kBorderWidth);
+ flags.setAntiAlias(true);
gfx::Rect rect(size);
rect.Inset(0, 0, kBorderWidth, kBorderWidth);
SkRect skia_rect = gfx::RectToSkRect(rect);
skia_rect.offset(kBorderWidth / 2.f, kBorderWidth / 2.f);
canvas->sk_canvas()->drawRoundRect(skia_rect, SkIntToScalar(corner_radius_),
- SkIntToScalar(corner_radius_), paint);
+ SkIntToScalar(corner_radius_), flags);
}
} // namespace views
« no previous file with comments | « ui/views/painter.cc ('k') | ui/views/shadow_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698