Offset bounds in GrDefaultPathRenderer by fTranslate.
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 1 Jul 2011 22:10:30 +0000 (22:10 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 1 Jul 2011 22:10:30 +0000 (22:10 +0000)
Review URL: http://codereview.appspot.com/4667053/

git-svn-id: http://skia.googlecode.com/svn/trunk@1787 2bbb7eff-a529-9590-31e7-b0007b416f81

gpu/src/GrPathRenderer.cpp

index 61670da..e82774d 100644 (file)
@@ -473,6 +473,7 @@ void GrDefaultPathRenderer::onDrawPath(GrDrawTarget::StageBitfield stages,
                 }
             } else {
                 bounds = fPath->getBounds();
+                bounds.offset(fTranslate);
             }
             GrDrawTarget::AutoGeometryPush agp(fTarget);
             fTarget->drawSimpleRect(bounds, NULL, stages);