Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(837)

Unified Diff: src/core/SkClipStack.cpp

Issue 680543002: Add some more volatile paths. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Set volatility in clipstack I/O Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkClipStack.cpp
diff --git a/src/core/SkClipStack.cpp b/src/core/SkClipStack.cpp
index cf2e71e671ae727f7b27c00f289631d92020885e..d5462876d1b77574d553f7fc4a8af275b3aa2492 100644
--- a/src/core/SkClipStack.cpp
+++ b/src/core/SkClipStack.cpp
@@ -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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698