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

Side by Side Diff: skia/config/SkUserConfig.h

Issue 9965037: Adding build-time option to enable the tracing of skia events in (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | skia/ext/skia_trace_shim.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 (C) 2006 The Android Open Source Project 2 * Copyright (C) 2006 The Android Open Source Project
3 * 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at 6 * You may obtain a copy of the License at
7 * 7 *
8 * http://www.apache.org/licenses/LICENSE-2.0 8 * http://www.apache.org/licenses/LICENSE-2.0
9 * 9 *
10 * Unless required by applicable law or agreed to in writing, software 10 * Unless required by applicable law or agreed to in writing, software
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 150
151 /* If SK_DEBUG is defined, then you can optionally define SK_SUPPORT_UNITTEST 151 /* If SK_DEBUG is defined, then you can optionally define SK_SUPPORT_UNITTEST
152 which will run additional self-tests at startup. These can take a long time, 152 which will run additional self-tests at startup. These can take a long time,
153 so this flag is optional. 153 so this flag is optional.
154 */ 154 */
155 #ifdef SK_DEBUG 155 #ifdef SK_DEBUG
156 #define SK_SUPPORT_UNITTEST 156 #define SK_SUPPORT_UNITTEST
157 #endif 157 #endif
158 158
159 /* If your system embeds skia and has complex event logging, define this
160 symbol to name a file that maps the following macros to your system's
161 equivalents:
162 SK_TRACE_EVENT0(event)
163 SK_TRACE_EVENT1(event, name1, value1)
164 SK_TRACE_EVENT2(event, name1, value1, name2, value2)
165 src/utils/SkDebugTrace.h has a trivial implementation that writes to
166 the debug output stream. If SK_USER_TRACE_INCLUDE_FILE is not defined,
167 SkTrace.h will define the above three macros to do nothing.
168 */
169 #undef SK_USER_TRACE_INCLUDE_FILE
170
159 /* If this is not defined, skia dithers gradients. Turning this on will make 171 /* If this is not defined, skia dithers gradients. Turning this on will make
160 gradients look better, but might have a performance impact. When it's turned 172 gradients look better, but might have a performance impact. When it's turned
161 on, several webkit pixel tests will need to be rebaselined, too. 173 on, several webkit pixel tests will need to be rebaselined, too.
162 http://crbug.com/41756 174 http://crbug.com/41756
163 */ 175 */
164 #define SK_DISABLE_DITHER_32BIT_GRADIENT 176 #define SK_DISABLE_DITHER_32BIT_GRADIENT
165 177
166 // ===== Begin Chrome-specific definitions ===== 178 // ===== Begin Chrome-specific definitions =====
167 179
168 #define SK_SCALAR_IS_FLOAT 180 #define SK_SCALAR_IS_FLOAT
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 #error Read the comment at this location 242 #error Read the comment at this location
231 #endif 243 #endif
232 244
233 #endif 245 #endif
234 246
235 // The default crash macro writes to badbeef which can cause some strange 247 // The default crash macro writes to badbeef which can cause some strange
236 // problems. Instead, pipe this through to the logging function as a fatal 248 // problems. Instead, pipe this through to the logging function as a fatal
237 // assertion. 249 // assertion.
238 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") 250 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH")
239 251
252 // Uncomment the following line to forward skia trace events to Chrome
253 // tracing.
254 // #define SK_USER_TRACE_INCLUDE_FILE "skia/ext/skia_trace_shim.h"
255
240 // ===== End Chrome-specific definitions ===== 256 // ===== End Chrome-specific definitions =====
241 257
242 #endif 258 #endif
OLDNEW
« no previous file with comments | « no previous file | skia/ext/skia_trace_shim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698