avoid AntiFrameRect when strokeSize is too small. Workaround for skbug/1368
BUG= R=robertphillips@google.com Review URL: https://codereview.chromium.org/17739003 git-svn-id: http://skia.googlecode.com/svn/trunk@9761 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
9d59e5556a
commit
056ae7cec3
@ -853,6 +853,11 @@ void SkDraw::drawRect(const SkRect& rect, const SkPaint& paint) const {
|
||||
SkPoint strokeSize;
|
||||
RectType rtype = ComputeRectType(paint, *fMatrix, &strokeSize);
|
||||
|
||||
// work-around bug in antiframerect when strokesize is < 1
|
||||
if (strokeSize.fX < SK_Scalar1 || strokeSize.fY < SK_Scalar1) {
|
||||
rtype = kPath_RectType;
|
||||
}
|
||||
|
||||
if (kPath_RectType == rtype) {
|
||||
SkPath tmp;
|
||||
tmp.addRect(rect);
|
||||
|
Loading…
Reference in New Issue
Block a user