aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-31 12:18:16 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-31 12:18:16 +0000
commitf8d904a7eed435b9de68fd2eef6d7f3c59fcc9cc (patch)
treebe009cf03b833cd6e0400bf4bc5ef65de203daf6 /src/gpu/SkGpuDevice.cpp
parentc23a63b9e24ac2384466bc4f24ad10f010f25c75 (diff)
GrClip no longer translates its clips (to better mimic SkClipStack's behavior)
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r--src/gpu/SkGpuDevice.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 3e5bba0ce2..dcfb57b030 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -415,17 +415,13 @@ static void convert_matrixclip(GrContext* context, const SkMatrix& matrix,
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);