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

Unified Diff: ui/views/animation/ink_drop_mask.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/native_theme/native_theme_win.cc ('k') | ui/views/animation/ink_drop_painted_layer_delegates.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_mask.cc
diff --git a/ui/views/animation/ink_drop_mask.cc b/ui/views/animation/ink_drop_mask.cc
index a398136c278a57766ee02eec4350e6b9eba88631..de839a9eecc315059d932e0dffaeaab2f7f3834f 100644
--- a/ui/views/animation/ink_drop_mask.cc
+++ b/ui/views/animation/ink_drop_mask.cc
@@ -42,15 +42,15 @@ RoundRectInkDropMask::RoundRectInkDropMask(const gfx::Size& layer_size,
corner_radius_(corner_radius) {}
void RoundRectInkDropMask::OnPaintLayer(const ui::PaintContext& context) {
- cc::PaintFlags paint;
- paint.setAlpha(255);
- paint.setStyle(cc::PaintFlags::kFill_Style);
- paint.setAntiAlias(true);
+ cc::PaintFlags flags;
+ flags.setAlpha(255);
+ flags.setStyle(cc::PaintFlags::kFill_Style);
+ flags.setAntiAlias(true);
ui::PaintRecorder recorder(context, layer()->size());
gfx::Rect bounds = layer()->bounds();
bounds.Inset(mask_insets_);
- recorder.canvas()->DrawRoundRect(bounds, corner_radius_, paint);
+ recorder.canvas()->DrawRoundRect(bounds, corner_radius_, flags);
}
// CircleInkDropMask
@@ -63,13 +63,13 @@ CircleInkDropMask::CircleInkDropMask(const gfx::Size& layer_size,
mask_radius_(mask_radius) {}
void CircleInkDropMask::OnPaintLayer(const ui::PaintContext& context) {
- cc::PaintFlags paint;
- paint.setAlpha(255);
- paint.setStyle(cc::PaintFlags::kFill_Style);
- paint.setAntiAlias(true);
+ cc::PaintFlags flags;
+ flags.setAlpha(255);
+ flags.setStyle(cc::PaintFlags::kFill_Style);
+ flags.setAntiAlias(true);
ui::PaintRecorder recorder(context, layer()->size());
- recorder.canvas()->DrawCircle(mask_center_, mask_radius_, paint);
+ recorder.canvas()->DrawCircle(mask_center_, mask_radius_, flags);
}
} // namespace views
« no previous file with comments | « ui/native_theme/native_theme_win.cc ('k') | ui/views/animation/ink_drop_painted_layer_delegates.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698