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

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

Issue 2281653002: Respecify SkCanvas::drawArc, consolidate conversion to SkPath, add GM for oddball drawArcs (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: update 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/SkPath.cpp ('k') | src/gpu/GrDrawContext.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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 path.fPathRef->addGenIDChangeListener(listener); 84 path.fPathRef->addGenIDChangeListener(listener);
85 } 85 }
86 86
87 /** 87 /**
88 * This returns true for a rect that begins and ends at the same corner and has either a move 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 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. 90 * optional. This does not permit degenerate line or point rectangles.
91 */ 91 */
92 static bool IsSimpleClosedRect(const SkPath& path, SkRect* rect, SkPath::Dir ection* direction, 92 static bool IsSimpleClosedRect(const SkPath& path, SkRect* rect, SkPath::Dir ection* direction,
93 unsigned* start); 93 unsigned* start);
94
95 /**
96 * Creates a path from arc params using the semantics of SkCanvas::drawArc. This function
97 * assumes empty ovals and zero sweeps have already been filtered out.
98 */
99 static void CreateDrawArcPath(SkPath* path, const SkRect& oval, SkScalar sta rtAngle,
100 SkScalar sweepAngle, bool useCenter, bool isFi llNoPathEffect);
94 }; 101 };
95 102
96 #endif 103 #endif
OLDNEW
« no previous file with comments | « src/core/SkPath.cpp ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698