Review URL: http://codereview.appspot.com/4360049/
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 11 Apr 2011 19:20:46 +0000 (19:20 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 11 Apr 2011 19:20:46 +0000 (19:20 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@1107 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/SkGpuDevice.cpp

index 4d3aa3a..2f4780e 100644 (file)
@@ -309,8 +309,8 @@ void SkGpuDevice::prepareRenderTarget(const SkDraw& draw) {
 void SkGpuDevice::setMatrixClip(const SkMatrix& matrix, const SkRegion& clip,
                                 const SkClipStack& clipStack) {
     this->INHERITED::setMatrixClip(matrix, clip, clipStack);
-
-    convert_matrixclip(fContext, matrix, clipStack, clip, this->getOrigin());
+    // We don't need to set them now because the context may not reflect this device.
+    fNeedPrepareRenderTarget = true;
 }
 
 void SkGpuDevice::gainFocus(SkCanvas* canvas, const SkMatrix& matrix,