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

Unified Diff: ui/views/painter.cc

Issue 2716013002: don't use deprecated helper methods on SkCanvas (Closed)
Patch Set: rebase Created 3 years, 10 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 | « skia/config/SkUserConfig.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/painter.cc
diff --git a/ui/views/painter.cc b/ui/views/painter.cc
index 655abd820157e0f6517ba5baf060770d3d032dbc..ffb4bbb9513612a19c2846e96df8fb089c0507f2 100644
--- a/ui/views/painter.cc
+++ b/ui/views/painter.cc
@@ -217,9 +217,8 @@ void GradientPainter::Paint(gfx::Canvas* canvas, const gfx::Size& size) {
p, colors_.get(), pos_.get(), count_, SkShader::kClamp_TileMode)));
flags.setStyle(cc::PaintFlags::kFill_Style);
- canvas->sk_canvas()->drawRectCoords(SkIntToScalar(0), SkIntToScalar(0),
- SkIntToScalar(size.width()),
- SkIntToScalar(size.height()), flags);
+ canvas->sk_canvas()->drawRect(SkRect::MakeIWH(size.width(), size.height()),
+ flags);
}
// ImagePainter ---------------------------------------------------------------
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698