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

Unified Diff: gm/blurrect.cpp

Issue 300973005: Shut up windows build errors on new GM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/blurrect.cpp
diff --git a/gm/blurrect.cpp b/gm/blurrect.cpp
index a56c51b3ca5b25f6171a1bfb5830c71d9dbd3512..0ea6f87071d50450f1c1fa6ae9bbc0c259c771e3 100644
--- a/gm/blurrect.cpp
+++ b/gm/blurrect.cpp
@@ -203,7 +203,7 @@ protected:
}
canvas->save();
- canvas->translate(cur_x, cur_y);
+ canvas->translate((SkScalar)cur_x, (SkScalar)cur_y);
bungeman-skia 2014/05/28 22:43:56 You should rather use SkIntToScalar here, you dirt
mtklein 2014/05/28 22:48:26 I thought the consensus was that SkIntToScalar is
canvas->translate(-(bm.width() - r.width())/2, -(bm.height()-r.height())/2);
canvas->drawBitmap(bm, 0.f, 0.f, NULL);
canvas->restore();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698