Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index 2e2255633538b4b4c9317fa76459c48891f5c834..3c5f7ec908c09cf467f3a8256e2b3da10dbbcdec 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -441,8 +441,7 @@ Error CodecSrc::draw(SkCanvas* canvas) const { |
} |
//create and set size of subsetBm |
SkBitmap subsetBm; |
- SkIRect bounds = SkIRect::MakeWH(subsetWidth, subsetHeight); |
- bounds.setXYWH(0, 0, currentSubsetWidth, currentSubsetHeight); |
+ SkIRect bounds = SkIRect::MakeWH(currentSubsetWidth, currentSubsetHeight); |
SkAssertResult(largestSubsetBm.extractSubset(&subsetBm, bounds)); |
SkAutoLockPixels autlockSubsetBm(subsetBm, true); |
const SkCodec::Result subsetResult = |