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

Side by Side Diff: src/pathops/SkReduceOrder.h

Issue 1002693002: pathops version two (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix arm 64 inspired coincident handling Created 5 years, 9 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/pathops/SkQuarticRoot.cpp ('k') | src/pathops/SkReduceOrder.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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef SkReduceOrder_DEFINED 7 #ifndef SkReduceOrder_DEFINED
8 #define SkReduceOrder_DEFINED 8 #define SkReduceOrder_DEFINED
9 9
10 #include "SkPath.h"
11 #include "SkPathOpsCubic.h" 10 #include "SkPathOpsCubic.h"
12 #include "SkPathOpsLine.h" 11 #include "SkPathOpsLine.h"
13 #include "SkPathOpsQuad.h" 12 #include "SkPathOpsQuad.h"
14 #include "SkTArray.h"
15 13
16 union SkReduceOrder { 14 union SkReduceOrder {
17 enum Quadratics { 15 enum Quadratics {
18 kNo_Quadratics, 16 kNo_Quadratics,
19 kAllow_Quadratics 17 kAllow_Quadratics
20 }; 18 };
21 19
22 int reduce(const SkDCubic& cubic, Quadratics); 20 int reduce(const SkDCubic& cubic, Quadratics);
23 int reduce(const SkDLine& line); 21 int reduce(const SkDLine& line);
24 int reduce(const SkDQuad& quad); 22 int reduce(const SkDQuad& quad);
25 23
26 static SkPath::Verb Cubic(const SkPoint pts[4], SkPoint* reducePts); 24 static SkPath::Verb Cubic(const SkPoint pts[4], SkPoint* reducePts);
27 static SkPath::Verb Quad(const SkPoint pts[3], SkPoint* reducePts); 25 static SkPath::Verb Quad(const SkPoint pts[3], SkPoint* reducePts);
28 26
29 SkDLine fLine; 27 SkDLine fLine;
30 SkDQuad fQuad; 28 SkDQuad fQuad;
31 SkDCubic fCubic; 29 SkDCubic fCubic;
32 }; 30 };
33 31
34 #endif 32 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkQuarticRoot.cpp ('k') | src/pathops/SkReduceOrder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698