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

Unified Diff: ui/native_theme/native_theme_base.cc

Issue 291843003: use simpler gradient factories (in prep for removing SkUnitMapper param) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: ui/native_theme/native_theme_base.cc
diff --git a/ui/native_theme/native_theme_base.cc b/ui/native_theme/native_theme_base.cc
index fa7ab6e8a0afb01c715de1bef049434dc21ba2e2..a2ba3a495a9de28681c495a5fe0408592aa32fa8 100644
--- a/ui/native_theme/native_theme_base.cc
+++ b/ui/native_theme/native_theme_base.cc
@@ -605,7 +605,7 @@ SkRect NativeThemeBase::PaintCheckboxRadioCommon(
SkColor colors[3] = {startEndColors[0], startEndColors[0], startEndColors[1]};
skia::RefPtr<SkShader> shader = skia::AdoptRef(
SkGradientShader::CreateLinear(
- gradient_bounds, colors, NULL, 3, SkShader::kClamp_TileMode, NULL));
+ gradient_bounds, colors, NULL, 3, SkShader::kClamp_TileMode));
SkPaint paint;
paint.setAntiAlias(true);
paint.setShader(shader.get());
@@ -692,7 +692,7 @@ void NativeThemeBase::PaintButton(SkCanvas* canvas,
skia::RefPtr<SkShader> shader = skia::AdoptRef(
SkGradientShader::CreateLinear(
- gradient_bounds, colors, NULL, 2, SkShader::kClamp_TileMode, NULL));
+ gradient_bounds, colors, NULL, 2, SkShader::kClamp_TileMode));
paint.setStyle(SkPaint::kFill_Style);
paint.setAntiAlias(true);
paint.setShader(shader.get());
« no previous file with comments | « content/browser/web_contents/aura/shadow_layer_delegate.cc ('k') | ui/views/controls/menu/menu_image_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698