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:
parent
9ef2d8382f
commit
fc899274d9
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user