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
This commit is contained in:
halcanary@google.com 2013-10-04 14:35:38 +00:00
parent ef6d8da924
commit 2dcf36e251

View File

@ -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);
}