Offset bounds in GrDefaultPathRenderer by fTranslate.

Review URL: http://codereview.appspot.com/4667053/



git-svn-id: http://skia.googlecode.com/svn/trunk@1787 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2011-07-01 22:10:30 +00:00
parent 9ef2d8382f
commit fc899274d9

View File

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