aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice.cpp
diff options
context:
space:
mode:
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);