Fix SkScalar conversion warning error.
This was causing probems on the Win build.
R=caryclark@google.com
Review URL: https://codereview.chromium.org/26011002
git-svn-id: http://skia.googlecode.com/svn/trunk@11604 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/images/SkImageDecoder_libjpeg.cpp b/src/images/SkImageDecoder_libjpeg.cpp
index 7652249..3e34a27 100644
--- a/src/images/SkImageDecoder_libjpeg.cpp
+++ b/src/images/SkImageDecoder_libjpeg.cpp
@@ -474,9 +474,9 @@
Used when decoding fails partway through reading scanlines to fill
remaining lines. */
static void fill_below_level(int y, SkBitmap* bitmap) {
- SkRect rect = SkRect::MakeLTRB(0, y, bitmap->width(), bitmap->height());
+ SkIRect rect = SkIRect::MakeLTRB(0, y, bitmap->width(), bitmap->height());
SkCanvas canvas(*bitmap);
- canvas.clipRect(rect);
+ canvas.clipRect(SkRect::Make(rect));
canvas.drawColor(SK_ColorWHITE);
}