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

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

Issue 2426753002: break ambiguous angle sorting loop (Closed)
Patch Set: fix linux warning Created 4 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 | « src/pathops/SkPathOpsCommon.cpp ('k') | tests/PathOpsChalkboardTest.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 2013 Google Inc. 2 * Copyright 2013 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 SkPathOpsDebug_DEFINED 7 #ifndef SkPathOpsDebug_DEFINED
8 #define SkPathOpsDebug_DEFINED 8 #define SkPathOpsDebug_DEFINED
9 9
10 #include "SkPathOps.h" 10 #include "SkPathOps.h"
11 #include "SkTypes.h" 11 #include "SkTypes.h"
12 12
13 #include <stdlib.h> 13 #include <stdlib.h>
14 #include <stdio.h> 14 #include <stdio.h>
15 15
16 enum class SkOpPhase : char; 16 enum class SkOpPhase : char;
17 class SkOpContourHead; 17 class SkOpContourHead;
18 18
19 #ifdef SK_RELEASE 19 #ifdef SK_RELEASE
20 #define FORCE_RELEASE 1 20 #define FORCE_RELEASE 1
21 #else 21 #else
22 #define FORCE_RELEASE 1 // set force release to 1 for multiple thread -- no deb ugging 22 #define FORCE_RELEASE 1 // set force release to 1 for multiple thread -- no deb ugging
23 #endif 23 #endif
24 24
25 #define DEBUG_UNDER_DEVELOPMENT 1 25 #define DEBUG_UNDER_DEVELOPMENT 0
26 26
27 #define ONE_OFF_DEBUG 0 27 #define ONE_OFF_DEBUG 0
28 #define ONE_OFF_DEBUG_MATHEMATICA 0 28 #define ONE_OFF_DEBUG_MATHEMATICA 0
29 29
30 #if defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_ANDROID) 30 #if defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_ANDROID)
31 #define SK_RAND(seed) rand() 31 #define SK_RAND(seed) rand()
32 #else 32 #else
33 #define SK_RAND(seed) rand_r(&seed) 33 #define SK_RAND(seed) rand_r(&seed)
34 #endif 34 #endif
35 #ifdef SK_BUILD_FOR_WIN 35 #ifdef SK_BUILD_FOR_WIN
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 #endif 373 #endif
374 }; 374 };
375 375
376 struct SkDQuad; 376 struct SkDQuad;
377 377
378 // generates tools/path_sorter.htm and path_visualizer.htm compatible data 378 // generates tools/path_sorter.htm and path_visualizer.htm compatible data
379 void DumpQ(const SkDQuad& quad1, const SkDQuad& quad2, int testNo); 379 void DumpQ(const SkDQuad& quad1, const SkDQuad& quad2, int testNo);
380 void DumpT(const SkDQuad& quad, double t); 380 void DumpT(const SkDQuad& quad, double t);
381 381
382 #endif 382 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsCommon.cpp ('k') | tests/PathOpsChalkboardTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698