Make sure path computed from stroke-rec application using GrStyle is volatile.

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2099313002

Review-Url: https://codereview.chromium.org/2099313002
This commit is contained in:
bsalomon 2016-06-27 07:59:12 -07:00 committed by Commit bot
parent ee43241d72
commit b85e63d6ec

View File

@ -178,6 +178,7 @@ bool GrStyle::applyToPath(SkPath* dst, SkStrokeRec::InitStyle* style, const SkPa
if (!strokeRec.applyToPath(dst, *pathForStrokeRec)) {
return false;
}
dst->setIsVolatile(true);
*style = SkStrokeRec::kFill_InitStyle;
} else if (!fPathEffect) {
// Nothing to do for path effect or stroke, fail.