diff options
author | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-21 17:10:44 +0000 |
---|---|---|
committer | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-21 17:10:44 +0000 |
commit | 3c8fb5171858a81b7f2f66b357891f41755c4033 (patch) | |
tree | e8a9a126045940d9a5b2d10421fd86b0e27f0e51 /src/effects | |
parent | 96966a5a1ffc2f03eef1b5523308299aa4195f50 (diff) |
Fix warnings-as-errors on Mac10.6 and Win. Unreviewed.
git-svn-id: http://skia.googlecode.com/svn/trunk@7811 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/SkRectShaderImageFilter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/effects/SkRectShaderImageFilter.cpp b/src/effects/SkRectShaderImageFilter.cpp index b6c78efd0f..eb5af2097c 100644 --- a/src/effects/SkRectShaderImageFilter.cpp +++ b/src/effects/SkRectShaderImageFilter.cpp @@ -47,7 +47,8 @@ bool SkRectShaderImageFilter::onFilterImage(Proxy* proxy, const SkMatrix& matrix, SkBitmap* result, SkIPoint* loc) { - SkAutoTUnref<SkDevice> device(proxy->createDevice(fRegion.width(), fRegion.height())); + SkAutoTUnref<SkDevice> device(proxy->createDevice(SkScalarCeilToInt(fRegion.width()), + SkScalarCeilToInt(fRegion.height()))); SkCanvas canvas(device.get()); SkPaint paint; paint.setShader(fShader); |