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

Unified Diff: src/images/SkImageDecoder_libjpeg.cpp

Issue 26011002: Fix SkScalar conversion warning error. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: witch to using SkIRect Created 7 years, 2 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: 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);
}
« 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