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

Unified Diff: gm/filterbitmap.cpp

Issue 16123004: use explicit conversion for int->scalar (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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/filterbitmap.cpp
diff --git a/gm/filterbitmap.cpp b/gm/filterbitmap.cpp
index efb3d1077ad884f3f4c6837b4b20ce2d61edbbd9..371666dff545f7f12333789093900e1540603e3e 100644
--- a/gm/filterbitmap.cpp
+++ b/gm/filterbitmap.cpp
@@ -36,7 +36,8 @@ static void load_bm(SkBitmap* bm) {
static SkSize computeSize(const SkBitmap& bm, const SkMatrix& mat) {
SkRect bounds = { 0, 0, bm.width(), bm.height() };
mat.mapRect(&bounds);
- return SkSize::Make(bounds.width(), bounds.height());
+ return SkSize::Make(SkIntToScalar(bounds.width()),
+ SkIntToScalar(bounds.height()));
}
static void draw_col(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat,
« 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