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

Side by Side Diff: src/core/SkRecords.cpp

Issue 2303303002: Revert of 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 unified diff | Download patch
« no previous file with comments | « src/core/SkLiteDL.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkPathPriv.h" 8 #include "SkPathPriv.h"
9 #include "SkRecords.h" 9 #include "SkRecords.h"
10 10
11 namespace SkRecords { 11 namespace SkRecords {
12 PreCachedPath::PreCachedPath(const SkPath& path) : SkPath(path) { 12 PreCachedPath::PreCachedPath(const SkPath& path) : SkPath(path) {
13 this->updateBoundsCache(); 13 this->updateBoundsCache();
14 (void)this->getConvexity();
15 #if 0 // Disabled to see if we ever really race on this. It costs time, chromi um:496982. 14 #if 0 // Disabled to see if we ever really race on this. It costs time, chromi um:496982.
16 SkPathPriv::FirstDirection junk; 15 SkPathPriv::FirstDirection junk;
17 (void)SkPathPriv::CheapComputeFirstDirection(*this, &junk); 16 (void)SkPathPriv::CheapComputeFirstDirection(*this, &junk);
18 #endif 17 #endif
19 } 18 }
20 19
21 TypedMatrix::TypedMatrix(const SkMatrix& matrix) : SkMatrix(matrix) { 20 TypedMatrix::TypedMatrix(const SkMatrix& matrix) : SkMatrix(matrix) {
22 (void)this->getType(); 21 (void)this->getType();
23 } 22 }
24 } 23 }
OLDNEW
« no previous file with comments | « src/core/SkLiteDL.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698