OLD | NEW |
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 Loading... |
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" |
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; |
41 } | 42 } |
42 } | 43 } |
43 | 44 |
44 #define typesizeline(type) { #type , sizeof(type) } | 45 #define typesizeline(type) { #type , sizeof(type) } |
45 | 46 |
46 #ifdef BUILD_EMBOSS_TABLE | 47 #ifdef BUILD_EMBOSS_TABLE |
47 extern void SkEmbossMask_BuildTable(); | 48 extern void SkEmbossMask_BuildTable(); |
48 #endif | 49 #endif |
49 | 50 |
50 #ifdef BUILD_RADIALGRADIENT_TABLE | 51 #ifdef BUILD_RADIALGRADIENT_TABLE |
51 extern void SkRadialGradient_BuildTable(); | 52 extern void SkRadialGradient_BuildTable(); |
52 #endif | 53 #endif |
53 | 54 |
54 void SkGraphics::Init() { | 55 void SkGraphics::Init() { |
| 56 SkErrorInternals::Init(); |
| 57 |
55 #ifdef SK_DEVELOPER | 58 #ifdef SK_DEVELOPER |
56 skRTConfRegistry().possiblyDumpFile(); | 59 skRTConfRegistry().possiblyDumpFile(); |
57 skRTConfRegistry().validate(); | 60 skRTConfRegistry().validate(); |
58 SkDebugf("Non-default runtime configuration options:\n"); | 61 SkDebugf("Non-default runtime configuration options:\n"); |
59 skRTConfRegistry().printNonDefault( ); | 62 skRTConfRegistry().printNonDefault( ); |
60 #endif | 63 #endif |
61 | 64 |
62 SkFlattenable::InitializeFlattenables(); | 65 SkFlattenable::InitializeFlattenables(); |
63 #ifdef BUILD_EMBOSS_TABLE | 66 #ifdef BUILD_EMBOSS_TABLE |
64 SkEmbossMask_BuildTable(); | 67 SkEmbossMask_BuildTable(); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 if (nextEqual) { | 174 if (nextEqual) { |
172 val = (size_t) atoi(nextEqual + 1); | 175 val = (size_t) atoi(nextEqual + 1); |
173 } | 176 } |
174 (gFlags[i].fFunc)(val); | 177 (gFlags[i].fFunc)(val); |
175 break; | 178 break; |
176 } | 179 } |
177 } | 180 } |
178 flags = nextSemi + 1; | 181 flags = nextSemi + 1; |
179 } while (nextSemi); | 182 } while (nextSemi); |
180 } | 183 } |
OLD | NEW |