summaryrefslogtreecommitdiffstats
path: root/skia/config
diff options
context:
space:
mode:
authorjunov@chromium.org <junov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 21:42:59 +0000
committerjunov@chromium.org <junov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 21:42:59 +0000
commitba3658d2faf7d306c30a102bf56c7c0562789742 (patch)
treee1fd148e9960e545b70f750403248bbe4a96d6bd /skia/config
parentc6537211b0047a66018105f32e08ee4f3af71bda (diff)
downloadchromium_src-ba3658d2faf7d306c30a102bf56c7c0562789742.zip
chromium_src-ba3658d2faf7d306c30a102bf56c7c0562789742.tar.gz
chromium_src-ba3658d2faf7d306c30a102bf56c7c0562789742.tar.bz2
Adding build-time option to enable the tracing of skia events in
chrome://tracing BUG=121208 TEST=None Review URL: http://codereview.chromium.org/9965037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/config')
-rw-r--r--skia/config/SkUserConfig.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/skia/config/SkUserConfig.h b/skia/config/SkUserConfig.h
index dd8d852..f8c237f 100644
--- a/skia/config/SkUserConfig.h
+++ b/skia/config/SkUserConfig.h
@@ -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 @@ typedef unsigned uint32_t;
// 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