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" |
11 | 11 |
12 #include "SkBlitter.h" | 12 #include "SkBlitter.h" |
13 #include "SkCanvas.h" | 13 #include "SkCanvas.h" |
14 #include "SkGeometry.h" | 14 #include "SkGeometry.h" |
15 #include "SkMath.h" | 15 #include "SkMath.h" |
16 #include "SkMatrix.h" | 16 #include "SkMatrix.h" |
| 17 #include "SkOpts.h" |
17 #include "SkPath.h" | 18 #include "SkPath.h" |
18 #include "SkPathEffect.h" | 19 #include "SkPathEffect.h" |
19 #include "SkPixelRef.h" | 20 #include "SkPixelRef.h" |
20 #include "SkRefCnt.h" | 21 #include "SkRefCnt.h" |
21 #include "SkRTConf.h" | 22 #include "SkRTConf.h" |
22 #include "SkScalerContext.h" | 23 #include "SkScalerContext.h" |
23 #include "SkShader.h" | 24 #include "SkShader.h" |
24 #include "SkStream.h" | 25 #include "SkStream.h" |
25 #include "SkTSearch.h" | 26 #include "SkTSearch.h" |
26 #include "SkTime.h" | 27 #include "SkTime.h" |
(...skipping 16 matching lines...) Expand all Loading... |
43 | 44 |
44 #ifdef BUILD_EMBOSS_TABLE | 45 #ifdef BUILD_EMBOSS_TABLE |
45 extern void SkEmbossMask_BuildTable(); | 46 extern void SkEmbossMask_BuildTable(); |
46 #endif | 47 #endif |
47 | 48 |
48 #ifdef BUILD_RADIALGRADIENT_TABLE | 49 #ifdef BUILD_RADIALGRADIENT_TABLE |
49 extern void SkRadialGradient_BuildTable(); | 50 extern void SkRadialGradient_BuildTable(); |
50 #endif | 51 #endif |
51 | 52 |
52 void SkGraphics::Init() { | 53 void SkGraphics::Init() { |
| 54 SkOpts::Init(); |
53 #ifdef SK_DEVELOPER | 55 #ifdef SK_DEVELOPER |
54 skRTConfRegistry().possiblyDumpFile(); | 56 skRTConfRegistry().possiblyDumpFile(); |
55 skRTConfRegistry().validate(); | 57 skRTConfRegistry().validate(); |
56 if (skRTConfRegistry().hasNonDefault()) { | 58 if (skRTConfRegistry().hasNonDefault()) { |
57 SkDebugf("Non-default runtime configuration options:\n"); | 59 SkDebugf("Non-default runtime configuration options:\n"); |
58 skRTConfRegistry().printNonDefault(); | 60 skRTConfRegistry().printNonDefault(); |
59 } | 61 } |
60 #endif | 62 #endif |
61 | 63 |
62 #ifdef BUILD_EMBOSS_TABLE | 64 #ifdef BUILD_EMBOSS_TABLE |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 if (nextEqual) { | 173 if (nextEqual) { |
172 val = (size_t) atoi(nextEqual + 1); | 174 val = (size_t) atoi(nextEqual + 1); |
173 } | 175 } |
174 (gFlags[i].fFunc)(val); | 176 (gFlags[i].fFunc)(val); |
175 break; | 177 break; |
176 } | 178 } |
177 } | 179 } |
178 flags = nextSemi + 1; | 180 flags = nextSemi + 1; |
179 } while (nextSemi); | 181 } while (nextSemi); |
180 } | 182 } |
OLD | NEW |