Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index 38a5a60c6cb9b020a3f16ce82257b1af2977a0eb..0909e08dc85cd0784c0a7fe0b7474d9c6588d086 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -668,13 +668,10 @@ void GrDrawTarget::onDrawRect(const SkRect& rect, |
localMatrix->mapPointsWithStride(coords, vsize, 4); |
} |
} |
- SkTLazy<SkRect> bounds; |
- if (this->getDrawState().willEffectReadDstColor()) { |
- bounds.init(); |
- this->getDrawState().getViewMatrix().mapRect(bounds.get(), rect); |
- } |
+ SkRect bounds; |
+ this->getDrawState().getViewMatrix().mapRect(&bounds, rect); |
- this->drawNonIndexed(kTriangleFan_GrPrimitiveType, 0, 4, bounds.getMaybeNull()); |
+ this->drawNonIndexed(kTriangleFan_GrPrimitiveType, 0, 4, &bounds); |
} |
void GrDrawTarget::clipWillBeSet(const GrClipData* clipData) { |