aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2015-09-30 13:01:55 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-30 13:01:55 -0700
commit6634cbb427d97f88b6f719fc34ff9b8dbcf8a1f4 (patch)
tree08722f87a8d6a4ff7815c19eb262e5658bb3d13a
parent2d70bcccc9ba8f3898a7ae506ba7410ed8e9c9db (diff)
Small DM cleanup
We set a value to bounds, and then immediately replace it. Skip the first one. Review URL: https://codereview.chromium.org/1378923002
-rw-r--r--dm/DMSrcSink.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index d98a9cab7a..2ea115bc9a 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 =