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

Unified Diff: ash/touch_hud/touch_hud_renderer.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/touch/touch_hud_debug.cc ('k') | ash/utility/screenshot_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch_hud/touch_hud_renderer.cc
diff --git a/ash/touch_hud/touch_hud_renderer.cc b/ash/touch_hud/touch_hud_renderer.cc
index 9430f0881dffedc1653733228b9c6849714f556d..daedba347e386f07ca1079a7a497a667fb1ae376 100644
--- a/ash/touch_hud/touch_hud_renderer.cc
+++ b/ash/touch_hud/touch_hud_renderer.cc
@@ -40,8 +40,8 @@ class TouchPointView : public views::View,
SetSize(gfx::Size(2 * kPointRadius + 2, 2 * kPointRadius + 2));
- stroke_paint_.setStyle(cc::PaintFlags::kStroke_Style);
- stroke_paint_.setColor(kProjectionStrokeColor);
+ stroke_flags_.setStyle(cc::PaintFlags::kStroke_Style);
+ stroke_flags_.setColor(kProjectionStrokeColor);
gradient_colors_[0] = kProjectionFillColor;
gradient_colors_[1] = kProjectionStrokeColor;
@@ -82,16 +82,16 @@ class TouchPointView : public views::View,
int alpha = kProjectionAlpha;
if (fadeout_)
alpha = static_cast<int>(fadeout_->CurrentValueBetween(alpha, 0));
- fill_paint_.setAlpha(alpha);
- stroke_paint_.setAlpha(alpha);
- fill_paint_.setShader(SkGradientShader::MakeRadial(
+ fill_flags_.setAlpha(alpha);
+ stroke_flags_.setAlpha(alpha);
+ fill_flags_.setShader(SkGradientShader::MakeRadial(
gradient_center_, SkIntToScalar(kPointRadius), gradient_colors_,
gradient_pos_, arraysize(gradient_colors_),
SkShader::kMirror_TileMode));
canvas->DrawCircle(circle_center_, SkIntToScalar(kPointRadius),
- fill_paint_);
+ fill_flags_);
canvas->DrawCircle(circle_center_, SkIntToScalar(kPointRadius),
- stroke_paint_);
+ stroke_flags_);
}
// Overridden from gfx::AnimationDelegate.
@@ -120,8 +120,8 @@ class TouchPointView : public views::View,
const gfx::Point circle_center_;
const SkPoint gradient_center_;
- cc::PaintFlags fill_paint_;
- cc::PaintFlags stroke_paint_;
+ cc::PaintFlags fill_flags_;
+ cc::PaintFlags stroke_flags_;
SkColor gradient_colors_[2];
SkScalar gradient_pos_[2];
« no previous file with comments | « ash/touch/touch_hud_debug.cc ('k') | ash/utility/screenshot_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698