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:
jvanverth 2014-10-24 12:41:32 -07:00 committed by Commit bot
parent a15893ac41
commit 0deb2d9c5d

View File

@ -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() {