OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2013 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #ifndef SkError_DEFINED | |
9 #define SkError_DEFINED | |
10 | |
11 typedef enum { | |
reed1
2013/04/08 19:47:31
I think all of our other enums are just
enum SkEr
reed1
2013/04/08 19:47:31
Skia's other enums are named in reverse order from
humper
2013/04/08 20:10:55
Okay, I'll turn these around.
On 2013/04/08 19:47
| |
12 kError_NoError=0, | |
13 kError_InvalidArgument, | |
14 kError_InvalidOperation, | |
15 kError_InvalidHandle, | |
reed1
2013/04/08 19:47:31
What is a 'Handle' in the Skia world?
humper
2013/04/08 20:10:55
Done.
| |
16 kError_InvalidPaint, | |
reed1
2013/04/08 19:47:31
What is an invalid paint?
| |
17 kError_OutOfMemory, | |
18 kError_ParseError | |
19 } SkError; | |
20 | |
21 SkError SkGetLastError(); | |
reed1
2013/04/08 19:47:31
Need some dox for each of these, including that th
humper
2013/04/08 20:10:55
Done.
| |
22 void SkClearLastError(); | |
23 typedef void (*SkErrorCallbackFunction)(SkError, void *); | |
24 | |
25 void SkSetErrorCallback(SkErrorCallbackFunction cb, void *context); | |
26 const char *SkGetLastErrorString(); | |
27 | |
28 #endif /* SkError_DEFINED */ | |
OLD | NEW |