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

Unified Diff: include/core/SkPostConfig.h

Issue 1438773003: Fix GOOGLE3 Android build. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Move SkDebugfForDumpStackTrace to SkPostConfig.h Created 5 years, 1 month 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 | src/core/SkDebug.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPostConfig.h
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h
index 02b8b8b30541a7ce72cefcfa38bbb8f7dfbc2e74..ef54e1423951baf0fae49bec77004c6780e9641e 100644
--- a/include/core/SkPostConfig.h
+++ b/include/core/SkPostConfig.h
@@ -147,16 +147,20 @@
#
#endif
+#if defined(GOOGLE3)
+ // Used as argument to DumpStackTrace in SK_ALWAYSBREAK.
+ void SkDebugfForDumpStackTrace(const char* data, void* unused);
+#endif
+
#ifndef SK_ALWAYSBREAK
# if defined(GOOGLE3)
- void DebugWriteToStderr(const char*, void*);
void DumpStackTrace(int skip_count, void w(const char*, void*),
void* arg);
# define SK_ALWAYSBREAK(cond) do { \
if (cond) break; \
SkNO_RETURN_HINT(); \
SkDebugf("%s:%d: failed assertion \"%s\"\n", __FILE__, __LINE__, #cond); \
- DumpStackTrace(0, DebugWriteToStderr, nullptr); \
+ DumpStackTrace(0, SkDebugfForDumpStackTrace, nullptr); \
SK_CRASH(); \
} while (false)
# elif defined(SK_DEBUG)
« no previous file with comments | « no previous file | src/core/SkDebug.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698