Index: src/images/SkImageDecoder_libjpeg.cpp |
diff --git a/src/images/SkImageDecoder_libjpeg.cpp b/src/images/SkImageDecoder_libjpeg.cpp |
index 7652249f5eb0a0bb0f30f94bcb78b3af2fdf6bba..3e34a277fd0494a46dfafc7fa8a2364f889c2915 100644 |
--- a/src/images/SkImageDecoder_libjpeg.cpp |
+++ b/src/images/SkImageDecoder_libjpeg.cpp |
@@ -474,9 +474,9 @@ static void adjust_out_color_space_and_dither(jpeg_decompress_struct* cinfo, |
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); |
} |