Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkError.h
Go to the documentation of this file.
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 
15 enum SkError {
19 
25 
32 
38 
43 
47 
51 
56 };
57 
62 
65 void SkClearLastError();
66 
71 typedef void (*SkErrorCallbackFunction)(SkError, void *);
72 
82 void SkSetErrorCallback(SkErrorCallbackFunction cb, void *context);
83 
89 const char *SkGetLastErrorString();
90 
91 #endif /* SkError_DEFINED */
All is well.
Definition: SkError.h:18
Skia was unable to allocate memory to perform some task.
Definition: SkError.h:46
This is probably not possible because paint surely has defaults for everything, but perhaps a paint c...
Definition: SkError.h:42
SkError SkGetLastError()
Return the current per-thread error code.
void(* SkErrorCallbackFunction)(SkError, void *)
Type for callback functions to be invoked whenever an error is registered.
Definition: SkError.h:71
Probably not needed right now, but in the future we could have opaque handles for SkPictures floating...
Definition: SkError.h:37
SkError
Definition: SkError.h:15
void SkClearLastError()
Clear the current per-thread error code back to kNoError_SkError.
const char * SkGetLastErrorString()
Get a human-readable description of the last (per-thread) error that occurred.
User tried to perform some operation in a state when the operation was not legal, or the operands mak...
Definition: SkError.h:31
void SkSetErrorCallback(SkErrorCallbackFunction cb, void *context)
Set the current per-thread error callback.
User argument passed to Skia function was invalid: NULL when that’s not allowed, out of numeric range...
Definition: SkError.h:24
Skia failed while trying to consume some external resource.
Definition: SkError.h:50
Something went wrong internally; could be resource exhaustion but will often be a bug...
Definition: SkError.h:55