Bug 989707 - roundOut() the bounds rect instead of round(), as round() can return a rect that's not quite large enough to cover the path r=mattwoodrow

This commit is contained in:
George Wright 2014-03-31 05:06:25 -04:00
parent 4432156f43
commit 1ee369cbfc

View File

@ -602,7 +602,7 @@ void SkScan::FillPath(const SkPath& path, const SkRegion& origClip,
// don't reference "origClip" any more, just use clipPtr
SkIRect ir;
path.getBounds().round(&ir);
path.getBounds().roundOut(&ir);
if (ir.isEmpty()) {
if (path.isInverseFillType()) {
blitter->blitRegion(*clipPtr);