diff options
Diffstat (limited to 'ash')
-rw-r--r-- | ash/wm/gestures/long_press_affordance_handler.cc | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/ash/wm/gestures/long_press_affordance_handler.cc b/ash/wm/gestures/long_press_affordance_handler.cc index ab9e413..11be224 100644 --- a/ash/wm/gestures/long_press_affordance_handler.cc +++ b/ash/wm/gestures/long_press_affordance_handler.cc @@ -105,15 +105,10 @@ void PaintAffordanceGlow(gfx::Canvas* canvas, int radius = (end_radius + start_radius) / 2; int glow_width = end_radius - start_radius; sk_center.iset(center.x(), center.y()); - skia::RefPtr<SkShader> shader = skia::AdoptRef( - SkGradientShader::CreateTwoPointRadial( - sk_center, - SkIntToScalar(start_radius), - sk_center, - SkIntToScalar(end_radius), - colors, - pos, - num_colors, + skia::RefPtr<SkShader> shader = + skia::AdoptRef(SkGradientShader::CreateTwoPointConical( + sk_center, SkIntToScalar(start_radius), sk_center, + SkIntToScalar(end_radius), colors, pos, num_colors, SkShader::kClamp_TileMode)); DCHECK(shader); SkPaint paint; |