summaryrefslogtreecommitdiffstats
path: root/ui/views/painter.cc
diff options
context:
space:
mode:
authorreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-19 20:17:28 +0000
committerreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-19 20:17:28 +0000
commit343bd7a3460d23bd8b2fc24353fa2933b03275cf (patch)
tree848cb6b6e61647320f7b2188ef2f91a928b3f040 /ui/views/painter.cc
parentd16fec1be447662b403c113e5325bd2ab62eddb0 (diff)
downloadchromium_src-343bd7a3460d23bd8b2fc24353fa2933b03275cf.zip
chromium_src-343bd7a3460d23bd8b2fc24353fa2933b03275cf.tar.gz
chromium_src-343bd7a3460d23bd8b2fc24353fa2933b03275cf.tar.bz2
use simpler gradient factories (in prep for removing SkUnitMapper param)
BUG= Review URL: https://codereview.chromium.org/291843003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271462 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/painter.cc')
-rw-r--r--ui/views/painter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/views/painter.cc b/ui/views/painter.cc
index d445c15..ed0e65f 100644
--- a/ui/views/painter.cc
+++ b/ui/views/painter.cc
@@ -151,7 +151,7 @@ void GradientPainter::Paint(gfx::Canvas* canvas, const gfx::Size& size) {
p[1].iset(0, size.height());
skia::RefPtr<SkShader> s = skia::AdoptRef(SkGradientShader::CreateLinear(
- p, colors_.get(), pos_.get(), count_, SkShader::kClamp_TileMode, NULL));
+ p, colors_.get(), pos_.get(), count_, SkShader::kClamp_TileMode));
paint.setStyle(SkPaint::kFill_Style);
paint.setShader(s.get());