Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(640)

Side by Side Diff: include/core/SkError.h

Issue 13699004: first draft of error checking / reporting API (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Several cleanups from Leon Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gyp/tests.gyp ('k') | src/core/SkError.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 */
OLDNEW
« no previous file with comments | « gyp/tests.gyp ('k') | src/core/SkError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698