Forced GrClip to always have conservative bounds
http://codereview.appspot.com/6353089/
git-svn-id: http://skia.googlecode.com/svn/trunk@4545 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index e5227a2..ba8be8c 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -353,7 +353,7 @@
GrIntToScalar(skBounds.fRight),
GrIntToScalar(skBounds.fBottom));
GrClip grc(&iter, GrIntToScalar(-origin.x()), GrIntToScalar(-origin.y()),
- &bounds);
+ bounds);
context->setClip(grc);
}
@@ -814,7 +814,10 @@
// an AutoClipRestore.
GrClip oldClip = context->getClip();
context->setRenderTarget(pathTexture->asRenderTarget());
- context->setClip(srcRect);
+
+ GrClip newClip(srcRect);
+ context->setClip(newClip);
+
context->clear(NULL, 0);
GrPaint tempPaint;
tempPaint.reset();