GrClip no longer translates its clips (to better mimic SkClipStack's behavior)
http://codereview.appspot.com/6445052/
git-svn-id: http://skia.googlecode.com/svn/trunk@4848 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 3e5bba0..dcfb57b 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -415,17 +415,13 @@
SkRect bounds;
bool isIntersectionOfRects = false;
- clipStack.getConservativeBounds(-origin.fX,
- -origin.fY,
+ clipStack.getConservativeBounds(0, 0,
renderTargetWidth,
renderTargetHeight,
&bounds,
&isIntersectionOfRects);
- result->setFromIterator(&iter,
- GrIntToScalar(-origin.x()),
- GrIntToScalar(-origin.y()),
- bounds);
+ result->setFromIterator(&iter, bounds);
GrAssert(result->isRect() == isIntersectionOfRects);