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

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

Issue 2017313002: Add SkPathPriv::IsSimpleClosedRect (Closed) Base URL: https://chromium.googlesource.com/skia.git@fixaddarc
Patch Set: fix gcc warning Created 4 years, 6 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/SkPath.cpp ('k') | tests/PathTest.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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return false; 76 return false;
77 default: break; 77 default: break;
78 } 78 }
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
87 /**
88 * This returns true for a rect that begins and ends at the same corner and has either a move
89 * followed by four lines or a move followed by 3 lines and a close. None of the parameters are
90 * optional. This does not permit degenerate line or point rectangles.
91 */
92 static bool IsSimpleClosedRect(const SkPath& path, SkRect* rect, SkPath::Dir ection* direction,
93 unsigned* start);
86 }; 94 };
87 95
88 #endif 96 #endif
OLDNEW
« no previous file with comments | « src/core/SkPath.cpp ('k') | tests/PathTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698