Add some more volatile paths.
Some clip paths were not marked as volatile, and ending up in the distance field path renderer when they shouldn't. BUG=skia:3066 Review URL: https://codereview.chromium.org/680543002
This commit is contained in:
parent
a15893ac41
commit
0deb2d9c5d
@ -125,6 +125,7 @@ void SkClipStack::Element::initPath(int saveCount, const SkPath& path, SkRegion:
|
||||
}
|
||||
}
|
||||
fPath.set(path);
|
||||
fPath.get()->setIsVolatile(true);
|
||||
fType = kPath_Type;
|
||||
this->initCommon(saveCount, op, doAA);
|
||||
}
|
||||
@ -146,6 +147,7 @@ void SkClipStack::Element::asPath(SkPath* path) const {
|
||||
*path = *fPath.get();
|
||||
break;
|
||||
}
|
||||
path->setIsVolatile(true);
|
||||
}
|
||||
|
||||
void SkClipStack::Element::setEmpty() {
|
||||
|
Loading…
Reference in New Issue
Block a user