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

Unified Diff: src/core/SkLiteDL.cpp

Issue 2300003003: Force SkPath::getConvexity() cache for thread safety. (Closed)
Patch Set: Created 4 years, 3 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 | src/core/SkRecords.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkLiteDL.cpp
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp
index fee6de385c7e84cbcd6716e0c4688fc34981dafd..b88f7bc62c41a45ed26b64867f8dbc1dd2c092c2 100644
--- a/src/core/SkLiteDL.cpp
+++ b/src/core/SkLiteDL.cpp
@@ -43,7 +43,10 @@ static D* pod(T* op, size_t offset = 0) {
// Pre-cache lazy non-threadsafe fields on SkPath and/or SkMatrix.
static void make_threadsafe(SkPath* path, SkMatrix* matrix) {
- if (path) { path->updateBoundsCache(); }
+ if (path) {
+ path->updateBoundsCache();
+ (void)path->getConvexity();
+ }
if (matrix) { (void)matrix->getType(); }
}
« no previous file with comments | « no previous file | src/core/SkRecords.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698