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

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

Issue 2231663002: Fix SkDEBUGCODE to accept commas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/SkDConicLineIntersection.cpp ('k') | src/pathops/SkPathOpsTSect.h » ('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"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #define DEBUG_T_SECT_LOOP_COUNT 0 94 #define DEBUG_T_SECT_LOOP_COUNT 0
95 #define DEBUG_VALIDATE 1 95 #define DEBUG_VALIDATE 1
96 #define DEBUG_WINDING 1 96 #define DEBUG_WINDING 1
97 #define DEBUG_WINDING_AT_T 1 97 #define DEBUG_WINDING_AT_T 1
98 98
99 #endif 99 #endif
100 100
101 #ifdef SK_RELEASE 101 #ifdef SK_RELEASE
102 #define SkDEBUGRELEASE(a, b) b 102 #define SkDEBUGRELEASE(a, b) b
103 #define SkDEBUGPARAMS(...) 103 #define SkDEBUGPARAMS(...)
104 #define SkDEBUGCODE_(...)
105 #else 104 #else
106 #define SkDEBUGRELEASE(a, b) a 105 #define SkDEBUGRELEASE(a, b) a
107 #define SkDEBUGPARAMS(...) , __VA_ARGS__ 106 #define SkDEBUGPARAMS(...) , __VA_ARGS__
108 #define SkDEBUGCODE_(...) __VA_ARGS__ // temporary until SkDEBUGCODE is fix ed
109 #endif 107 #endif
110 108
111 #if DEBUG_VALIDATE == 0 109 #if DEBUG_VALIDATE == 0
112 #define PATH_OPS_DEBUG_VALIDATE_PARAMS(...) 110 #define PATH_OPS_DEBUG_VALIDATE_PARAMS(...)
113 #else 111 #else
114 #define PATH_OPS_DEBUG_VALIDATE_PARAMS(...) , __VA_ARGS__ 112 #define PATH_OPS_DEBUG_VALIDATE_PARAMS(...) , __VA_ARGS__
115 #endif 113 #endif
116 114
117 #if DEBUG_T_SECT == 0 115 #if DEBUG_T_SECT == 0
118 #define PATH_OPS_DEBUG_T_SECT_RELEASE(a, b) b 116 #define PATH_OPS_DEBUG_T_SECT_RELEASE(a, b) b
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 static const class SkOpSpanBase* DebugSpanSpan(const class SkOpSpanBase*, in t id); 233 static const class SkOpSpanBase* DebugSpanSpan(const class SkOpSpanBase*, in t id);
236 }; 234 };
237 235
238 struct SkDQuad; 236 struct SkDQuad;
239 237
240 // generates tools/path_sorter.htm and path_visualizer.htm compatible data 238 // generates tools/path_sorter.htm and path_visualizer.htm compatible data
241 void DumpQ(const SkDQuad& quad1, const SkDQuad& quad2, int testNo); 239 void DumpQ(const SkDQuad& quad1, const SkDQuad& quad2, int testNo);
242 void DumpT(const SkDQuad& quad, double t); 240 void DumpT(const SkDQuad& quad, double t);
243 241
244 #endif 242 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkDConicLineIntersection.cpp ('k') | src/pathops/SkPathOpsTSect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698