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

Side by Side Diff: src/core/SkGraphics.cpp

Issue 13699004: first draft of error checking / reporting API (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Remove need for error init 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkGraphics.h" 10 #include "SkGraphics.h"
(...skipping 10 matching lines...) Expand all
21 #include "SkPixelRef.h" 21 #include "SkPixelRef.h"
22 #include "SkRefCnt.h" 22 #include "SkRefCnt.h"
23 #include "SkRTConf.h" 23 #include "SkRTConf.h"
24 #include "SkScalerContext.h" 24 #include "SkScalerContext.h"
25 #include "SkShader.h" 25 #include "SkShader.h"
26 #include "SkStream.h" 26 #include "SkStream.h"
27 #include "SkTSearch.h" 27 #include "SkTSearch.h"
28 #include "SkTime.h" 28 #include "SkTime.h"
29 #include "SkUtils.h" 29 #include "SkUtils.h"
30 #include "SkXfermode.h" 30 #include "SkXfermode.h"
31 #include "SkErrorInternals.h"
scroggo 2013/04/08 21:01:34 No longer needed.
humper 2013/04/08 21:15:18 Done.
31 32
32 void SkGraphics::GetVersion(int32_t* major, int32_t* minor, int32_t* patch) { 33 void SkGraphics::GetVersion(int32_t* major, int32_t* minor, int32_t* patch) {
33 if (major) { 34 if (major) {
34 *major = SKIA_VERSION_MAJOR; 35 *major = SKIA_VERSION_MAJOR;
35 } 36 }
36 if (minor) { 37 if (minor) {
37 *minor = SKIA_VERSION_MINOR; 38 *minor = SKIA_VERSION_MINOR;
38 } 39 }
39 if (patch) { 40 if (patch) {
40 *patch = SKIA_VERSION_PATCH; 41 *patch = SKIA_VERSION_PATCH;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 if (nextEqual) { 172 if (nextEqual) {
172 val = (size_t) atoi(nextEqual + 1); 173 val = (size_t) atoi(nextEqual + 1);
173 } 174 }
174 (gFlags[i].fFunc)(val); 175 (gFlags[i].fFunc)(val);
175 break; 176 break;
176 } 177 }
177 } 178 }
178 flags = nextSemi + 1; 179 flags = nextSemi + 1;
179 } while (nextSemi); 180 } while (nextSemi);
180 } 181 }
OLDNEW
« src/core/SkError.cpp ('K') | « src/core/SkErrorInternals.h ('k') | src/core/SkPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698