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

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

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/SkPathMeasure.cpp ('k') | src/core/SkPerspIter.h » ('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 11 matching lines...) Expand all
22 // since we agree numerically for the values in Direction, we can just c ast. 22 // since we agree numerically for the values in Direction, we can just c ast.
23 return (FirstDirection)dir; 23 return (FirstDirection)dir;
24 } 24 }
25 25
26 /** 26 /**
27 * Return the opposite of the specified direction. kUnknown is its own 27 * Return the opposite of the specified direction. kUnknown is its own
28 * opposite. 28 * opposite.
29 */ 29 */
30 static FirstDirection OppositeFirstDirection(FirstDirection dir) { 30 static FirstDirection OppositeFirstDirection(FirstDirection dir) {
31 static const FirstDirection gOppositeDir[] = { 31 static const FirstDirection gOppositeDir[] = {
32 kCCW_FirstDirection, kCW_FirstDirection, kUnknown_FirstDirection, 32 kCCW_FirstDirection, kCW_FirstDirection, kUnknown_FirstDirection,
33 }; 33 };
34 return gOppositeDir[dir]; 34 return gOppositeDir[dir];
35 } 35 }
36 36
37 /** 37 /**
38 * Tries to quickly compute the direction of the first non-degenerate 38 * Tries to quickly compute the direction of the first non-degenerate
39 * contour. If it can be computed, return true and set dir to that 39 * contour. If it can be computed, return true and set dir to that
40 * direction. If it cannot be (quickly) determined, return false and ignore 40 * direction. If it cannot be (quickly) determined, return false and ignore
41 * the dir parameter. If the direction was determined, it is cached to make 41 * the dir parameter. If the direction was determined, it is cached to make
42 * subsequent calls return quickly. 42 * subsequent calls return quickly.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 return false; 80 return false;
81 } 81 }
82 82
83 static void AddGenIDChangeListener(const SkPath& path, SkPathRef::GenIDChang eListener* listener) { 83 static void AddGenIDChangeListener(const SkPath& path, SkPathRef::GenIDChang eListener* listener) {
84 path.fPathRef->addGenIDChangeListener(listener); 84 path.fPathRef->addGenIDChangeListener(listener);
85 } 85 }
86 }; 86 };
87 87
88 #endif 88 #endif
OLDNEW
« no previous file with comments | « src/core/SkPathMeasure.cpp ('k') | src/core/SkPerspIter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698