OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 | 7 |
8 #include "CrashHandler.h" | 8 #include "CrashHandler.h" |
9 | 9 |
10 #include "SkTypes.h" | 10 #include "../private/SkLeanWindows.h" |
11 | 11 |
12 #include <stdlib.h> | 12 #include <stdlib.h> |
13 | 13 |
14 // Disable SetupCrashHandler() unless SK_CRASH_HANDLER is defined. | 14 // Disable SetupCrashHandler() unless SK_CRASH_HANDLER is defined. |
15 #ifndef SK_CRASH_HANDLER | 15 #ifndef SK_CRASH_HANDLER |
16 void SetupCrashHandler() { } | 16 void SetupCrashHandler() { } |
17 | 17 |
18 #elif defined(GOOGLE3) | 18 #elif defined(GOOGLE3) |
19 #include "base/process_state.h" | 19 #include "base/process_state.h" |
20 void SetupCrashHandler() { InstallSignalHandlers(); } | 20 void SetupCrashHandler() { InstallSignalHandlers(); } |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 void SetupCrashHandler() { | 183 void SetupCrashHandler() { |
184 SetUnhandledExceptionFilter(handler); | 184 SetUnhandledExceptionFilter(handler); |
185 } | 185 } |
186 | 186 |
187 #else // We asked for SK_CRASH_HANDLER, but it's not Mac, Linux, or Windows
. Sorry! | 187 #else // We asked for SK_CRASH_HANDLER, but it's not Mac, Linux, or Windows
. Sorry! |
188 | 188 |
189 void SetupCrashHandler() { } | 189 void SetupCrashHandler() { } |
190 | 190 |
191 #endif | 191 #endif |
192 #endif // SK_CRASH_HANDLER | 192 #endif // SK_CRASH_HANDLER |
OLD | NEW |