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

Side by Side Diff: tests/StrokerTest.cpp

Issue 638403002: try again to fix ios build (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "PathOpsCubicIntersectionTestData.h" 1 #include "PathOpsCubicIntersectionTestData.h"
2 #include "PathOpsQuadIntersectionTestData.h" 2 #include "PathOpsQuadIntersectionTestData.h"
3 #include "SkCommonFlags.h" 3 #include "SkCommonFlags.h"
4 #include "SkPaint.h" 4 #include "SkPaint.h"
5 #include "SkPath.h" 5 #include "SkPath.h"
6 #include "SkRandom.h" 6 #include "SkRandom.h"
7 #include "SkStrokerPriv.h" 7 #include "SkStrokerPriv.h"
8 #include "SkTime.h" 8 #include "SkTime.h"
9 #include "Test.h" 9 #include "Test.h"
10 10
11 #ifndef SK_BUILD_FOR_IOS 11 #ifndef SK_BUILD_FOR_IOS
12 DEFINE_bool2(extendedTest, x, false, "run extended tests regardless of how long takes"); 12 DEFINE_bool2(extendedTest, x, false, "run extended tests regardless of how long takes");
13 #else
14 DECLARE_bool(extendedTest);
13 #endif 15 #endif
14 16
15 #define MS_TEST_DURATION 10 17 #define MS_TEST_DURATION 10
16 18
17 const SkScalar widths[] = {-FLT_MAX, -1, -0.1f, -FLT_EPSILON, 0, FLT_EPSILON, 19 const SkScalar widths[] = {-FLT_MAX, -1, -0.1f, -FLT_EPSILON, 0, FLT_EPSILON,
18 0.0000001f, 0.000001f, 0.00001f, 0.0001f, 0.001f, 0.01f, 20 0.0000001f, 0.000001f, 0.00001f, 0.0001f, 0.001f, 0.01f,
19 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 1, 1.1f, 2, 10, 10e2f, 10e3f, 10e4f, 10e5f , 10e6f, 10e7f, 21 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 1, 1.1f, 2, 10, 10e2f, 10e3f, 10e4f, 10e5f , 10e6f, 10e7f,
20 10e8f, 10e9f, 10e10f, 10e20f, FLT_MAX }; 22 10e8f, 10e9f, 10e10f, 10e20f, FLT_MAX };
21 size_t widths_count = SK_ARRAY_COUNT(widths); 23 size_t widths_count = SK_ARRAY_COUNT(widths);
22 24
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 path.dump(); 447 path.dump();
446 SkDebugf("fill:\n"); 448 SkDebugf("fill:\n");
447 fill.dump(); 449 fill.dump();
448 } 450 }
449 #if defined(SK_DEBUG) && QUAD_STROKE_APPROXIMATION 451 #if defined(SK_DEBUG) && QUAD_STROKE_APPROXIMATION
450 if (FLAGS_verbose) { 452 if (FLAGS_verbose) {
451 SkDebugf("max tan=%d cubic=%d\n", gMaxRecursion[0], gMaxRecursion[1]); 453 SkDebugf("max tan=%d cubic=%d\n", gMaxRecursion[0], gMaxRecursion[1]);
452 } 454 }
453 #endif 455 #endif
454 } 456 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698