From f8d904a7eed435b9de68fd2eef6d7f3c59fcc9cc Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Tue, 31 Jul 2012 12:18:16 +0000 Subject: 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 --- src/gpu/SkGpuDevice.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/gpu/SkGpuDevice.cpp') 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); -- cgit v1.2.3