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

Unified Diff: ash/touch_hud/touch_hud_renderer.cc

Issue 2893083002: cc: Move SkShader construction to a single spot in PaintShader (Closed)
Patch Set: update Created 3 years, 6 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_hud/BUILD.gn ('k') | cc/paint/BUILD.gn » ('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 d6ce0c342093b11776ee02b21e0cfb135c52d5f4..473fcaef9736bbc05fd1a37c5b0c8be468446bdb 100644
--- a/ash/touch_hud/touch_hud_renderer.cc
+++ b/ash/touch_hud/touch_hud_renderer.cc
@@ -84,7 +84,7 @@ class TouchPointView : public views::View,
alpha = static_cast<int>(fadeout_->CurrentValueBetween(alpha, 0));
fill_flags_.setAlpha(alpha);
stroke_flags_.setAlpha(alpha);
- fill_flags_.setShader(SkGradientShader::MakeRadial(
+ fill_flags_.setShader(cc::PaintShader::MakeRadialGradient(
gradient_center_, SkIntToScalar(kPointRadius), gradient_colors_,
gradient_pos_, arraysize(gradient_colors_),
SkShader::kMirror_TileMode));
« no previous file with comments | « ash/touch_hud/BUILD.gn ('k') | cc/paint/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698