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

Unified Diff: content/renderer/sad_plugin.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 | « cc/playback/display_item_list_unittest.cc ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/sad_plugin.cc
diff --git a/content/renderer/sad_plugin.cc b/content/renderer/sad_plugin.cc
index 9f1cee156a9f949652336bb573e55662276ee7ab..5437685fae8f641e0c7bbc559805526a4fcff001 100644
--- a/content/renderer/sad_plugin.cc
+++ b/content/renderer/sad_plugin.cc
@@ -28,8 +28,7 @@ void PaintSadPlugin(blink::WebCanvas* webcanvas,
cc::PaintFlags flags;
flags.setStyle(cc::PaintFlags::kFill_Style);
flags.setColor(SK_ColorBLACK);
- canvas->drawRectCoords(0, 0, SkIntToScalar(width), SkIntToScalar(height),
- flags);
+ canvas->drawRect(SkRect::MakeIWH(width, height), flags);
canvas->drawBitmap(
sad_plugin_bitmap,
SkIntToScalar(std::max(0, (width - sad_plugin_bitmap.width()) / 2)),
« no previous file with comments | « cc/playback/display_item_list_unittest.cc ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698