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

Unified Diff: ash/laser/laser_pointer_view.cc

Issue 2679423002: ash: 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 | « ash/common/wm/window_cycle_list.cc ('k') | ash/magnifier/partial_magnification_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/laser/laser_pointer_view.cc
diff --git a/ash/laser/laser_pointer_view.cc b/ash/laser/laser_pointer_view.cc
index 1a209a07be636643be9be75e2b39dfa4da359ad0..5374ce959c59c69e5a25a006ffb861a9394eb6d0 100644
--- a/ash/laser/laser_pointer_view.cc
+++ b/ash/laser/laser_pointer_view.cc
@@ -218,9 +218,9 @@ void LaserPointerView::OnPaint(gfx::Canvas* canvas) {
if (laser_points_.IsEmpty())
return;
- cc::PaintFlags paint;
- paint.setStyle(cc::PaintFlags::kFill_Style);
- paint.setAntiAlias(true);
+ cc::PaintFlags flags;
+ flags.setStyle(cc::PaintFlags::kFill_Style);
+ flags.setAntiAlias(true);
// Compute the offset of the current widget.
gfx::Vector2d widget_offset(
@@ -262,16 +262,16 @@ void LaserPointerView::OnPaint(gfx::Canvas* canvas) {
i == num_points - 1);
SkPath path = current_segment.path();
- paint.setColor(SkColorSetA(kPointColor, current_opacity));
- canvas->DrawPath(path, paint);
+ flags.setColor(SkColorSetA(kPointColor, current_opacity));
+ canvas->DrawPath(path, flags);
previous_segment_points = current_segment.path_points();
previous_radius = current_radius;
previous_point = current_point;
}
// Draw the last point as a circle.
- paint.setColor(SkColorSetA(kPointColor, current_opacity));
- paint.setStyle(cc::PaintFlags::kFill_Style);
- canvas->DrawCircle(current_point.location, kPointInitialRadius, paint);
+ flags.setColor(SkColorSetA(kPointColor, current_opacity));
+ flags.setStyle(cc::PaintFlags::kFill_Style);
+ canvas->DrawCircle(current_point.location, kPointInitialRadius, flags);
}
} // namespace ash
« no previous file with comments | « ash/common/wm/window_cycle_list.cc ('k') | ash/magnifier/partial_magnification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698