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

Side by Side Diff: src/core/SkPathPriv.h

Issue 1260363007: Revert "Implement caching of filled paths in the tessellated path renderer." (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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 | « include/gpu/GrResourceKey.h ('k') | src/core/SkPathRef.cpp » ('j') | 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 #ifndef SkPathPriv_DEFINED 8 #ifndef SkPathPriv_DEFINED
9 #define SkPathPriv_DEFINED 9 #define SkPathPriv_DEFINED
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 static bool CheapIsFirstDirection(const SkPath& path, FirstDirection dir) { 52 static bool CheapIsFirstDirection(const SkPath& path, FirstDirection dir) {
53 FirstDirection computedDir = kUnknown_FirstDirection; 53 FirstDirection computedDir = kUnknown_FirstDirection;
54 (void)CheapComputeFirstDirection(path, &computedDir); 54 (void)CheapComputeFirstDirection(path, &computedDir);
55 return computedDir == dir; 55 return computedDir == dir;
56 } 56 }
57 57
58 static bool LastVerbIsClose(const SkPath& path) { 58 static bool LastVerbIsClose(const SkPath& path) {
59 int count = path.countVerbs(); 59 int count = path.countVerbs();
60 return count >= 1 && path.fPathRef->verbs()[~(count - 1)] == SkPath::Ver b::kClose_Verb; 60 return count >= 1 && path.fPathRef->verbs()[~(count - 1)] == SkPath::Ver b::kClose_Verb;
61 } 61 }
62
63 static void AddGenIDChangeListener(const SkPath& path, SkPathRef::GenIDChang eListener* listener) {
64 path.fPathRef->addGenIDChangeListener(listener);
65 }
66 }; 62 };
67 63
68 #endif 64 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrResourceKey.h ('k') | src/core/SkPathRef.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698