| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 #ifndef SkErrorInternals_DEFINED | 8 #ifndef SkErrorInternals_DEFINED |
| 10 #define SkErrorInternals_DEFINED | 9 #define SkErrorInternals_DEFINED |
| 11 | 10 |
| 12 #include "SkError.h" | 11 #include "SkError.h" |
| 13 | 12 |
| 14 class SkErrorInternals { | 13 class SkErrorInternals { |
| 15 | 14 |
| 16 public: | 15 public: |
| 17 static void ClearError(); | 16 static void ClearError(); |
| 18 static void SetError(SkError code, const char *fmt, ...); | 17 static void SetError(SkError code, const char *fmt, ...); |
| 19 static SkError GetLastError(); | 18 static SkError GetLastError(); |
| 20 static const char *GetLastErrorString(); | 19 static const char *GetLastErrorString(); |
| 21 static void SetErrorCallback(SkErrorCallbackFunction cb, void *context); | 20 static void SetErrorCallback(SkErrorCallbackFunction cb, void *context); |
| 22 static void DefaultErrorCallback(SkError code, void *context); | 21 static void DefaultErrorCallback(SkError code, void *context); |
| 23 }; | 22 }; |
| 24 | 23 |
| 25 | 24 |
| 26 | 25 |
| 27 #endif /* SkErrorInternals_DEFINED */ | 26 #endif /* SkErrorInternals_DEFINED */ |
| OLD | NEW |