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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | skia/ext/skia_trace_shim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/config/SkUserConfig.h
===================================================================
--- skia/config/SkUserConfig.h (revision 129170)
+++ skia/config/SkUserConfig.h (working copy)
@@ -156,6 +156,18 @@
#define SK_SUPPORT_UNITTEST
#endif
+/* If your system embeds skia and has complex event logging, define this
+ symbol to name a file that maps the following macros to your system's
+ equivalents:
+ SK_TRACE_EVENT0(event)
+ SK_TRACE_EVENT1(event, name1, value1)
+ SK_TRACE_EVENT2(event, name1, value1, name2, value2)
+ src/utils/SkDebugTrace.h has a trivial implementation that writes to
+ the debug output stream. If SK_USER_TRACE_INCLUDE_FILE is not defined,
+ SkTrace.h will define the above three macros to do nothing.
+*/
+#undef SK_USER_TRACE_INCLUDE_FILE
+
/* If this is not defined, skia dithers gradients. Turning this on will make
gradients look better, but might have a performance impact. When it's turned
on, several webkit pixel tests will need to be rebaselined, too.
@@ -237,6 +249,10 @@
// assertion.
#define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH")
+// Uncomment the following line to forward skia trace events to Chrome
+// tracing.
+// #define SK_USER_TRACE_INCLUDE_FILE "skia/ext/skia_trace_shim.h"
+
// ===== End Chrome-specific definitions =====
#endif
« 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