Bug 1278972. Properly compare rect height vs stroke height when filling rect with skia without AA. r=lsalzman

This commit is contained in:
Mason Chang 2016-06-09 10:19:12 -07:00
parent 3c16b7f128
commit 3624359847

View File

@ -628,7 +628,7 @@ void SkScan::FrameRect(const SkRect& r, const SkPoint& strokeSize,
outer.set(r.fLeft - rx, r.fTop - ry,
r.fRight + rx, r.fBottom + ry);
if (r.width() <= dx || r.height() <= dx) {
if (r.width() <= dx || r.height() <= dy) {
SkScan::FillRect(outer, clip, blitter);
return;
}