diff options
author | reed <reed@chromium.org> | 2015-05-03 14:22:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-03 21:22:22 +0000 |
commit | 644cae313fdda0d849ae84fd812274e6cea2dfb5 (patch) | |
tree | 94f7479d65587f6815a3f91381fd09c59d4eba2d /ash | |
parent | 72224c96bdebc2bdb599be7615ac02a9396bd187 (diff) | |
download | chromium_src-644cae313fdda0d849ae84fd812274e6cea2dfb5.zip chromium_src-644cae313fdda0d849ae84fd812274e6cea2dfb5.tar.gz chromium_src-644cae313fdda0d849ae84fd812274e6cea2dfb5.tar.bz2 |
switch from (deprecated) TwoPointRadial to TwoPointConical gradient
BUG=
Review URL: https://codereview.chromium.org/1122713002
Cr-Commit-Position: refs/heads/master@{#328081}
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; |