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

Side by Side Diff: experimental/Intersection/CubicBezierClip_Test.cpp

Issue 867213004: remove prototype pathops code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #include "CurveIntersection.h"
8 #include "CubicIntersection_TestData.h"
9 #include "Intersection_Tests.h"
10
11 void CubicBezierClip_Test() {
12 for (size_t index = 0; index < tests_count; ++index) {
13 const Cubic& cubic1 = tests[index][0];
14 const Cubic& cubic2 = tests[index][1];
15 Cubic reduce1, reduce2;
16 int order1 = reduceOrder(cubic1, reduce1, kReduceOrder_NoQuadraticsAllow ed,
17 kReduceOrder_TreatAsFill);
18 int order2 = reduceOrder(cubic2, reduce2, kReduceOrder_NoQuadraticsAllow ed,
19 kReduceOrder_TreatAsFill);
20 if (order1 < 4) {
21 SkDebugf("%s [%d] cubic1 order=%d\n", __FUNCTION__, (int) index, ord er1);
22 }
23 if (order2 < 4) {
24 SkDebugf("%s [%d] cubic2 order=%d\n", __FUNCTION__, (int) index, ord er2);
25 }
26 if (order1 == 4 && order2 == 4) {
27 double minT = 0;
28 double maxT = 1;
29 bezier_clip(reduce1, reduce2, minT, maxT);
30 }
31 }
32 }
OLDNEW
« no previous file with comments | « experimental/Intersection/CubicBezierClip.cpp ('k') | experimental/Intersection/CubicBounds.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698