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 #include "SkTLS.h" | 8 #include "SkTLS.h" |
10 #include "SkTypes.h" | 9 #include "SkTypes.h" |
11 #include "SkError.h" | 10 #include "SkError.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 str += strlen(str); | 121 str += strlen(str); |
123 | 122 |
124 va_start( args, fmt ); | 123 va_start( args, fmt ); |
125 vsnprintf( str, string_left, fmt, args ); | 124 vsnprintf( str, string_left, fmt, args ); |
126 va_end( args ); | 125 va_end( args ); |
127 SkErrorCallbackFunction fn = THREAD_ERROR_CALLBACK; | 126 SkErrorCallbackFunction fn = THREAD_ERROR_CALLBACK; |
128 if (fn && code != kNoError_SkError) { | 127 if (fn && code != kNoError_SkError) { |
129 fn(code, THREAD_ERROR_CONTEXT); | 128 fn(code, THREAD_ERROR_CONTEXT); |
130 } | 129 } |
131 } | 130 } |
OLD | NEW |