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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #endif | 48 #endif |
49 | 49 |
50 #ifdef BUILD_RADIALGRADIENT_TABLE | 50 #ifdef BUILD_RADIALGRADIENT_TABLE |
51 extern void SkRadialGradient_BuildTable(); | 51 extern void SkRadialGradient_BuildTable(); |
52 #endif | 52 #endif |
53 | 53 |
54 void SkGraphics::Init() { | 54 void SkGraphics::Init() { |
55 #ifdef SK_DEVELOPER | 55 #ifdef SK_DEVELOPER |
56 skRTConfRegistry().possiblyDumpFile(); | 56 skRTConfRegistry().possiblyDumpFile(); |
57 skRTConfRegistry().validate(); | 57 skRTConfRegistry().validate(); |
58 SkDebugf("Non-default runtime configuration options:\n"); | 58 if (skRTConfRegistry().hasNonDefault()) { |
59 skRTConfRegistry().printNonDefault( ); | 59 SkDebugf("Non-default runtime configuration options:\n"); |
| 60 skRTConfRegistry().printNonDefault(); |
| 61 } |
60 #endif | 62 #endif |
61 | 63 |
62 #ifdef BUILD_EMBOSS_TABLE | 64 #ifdef BUILD_EMBOSS_TABLE |
63 SkEmbossMask_BuildTable(); | 65 SkEmbossMask_BuildTable(); |
64 #endif | 66 #endif |
65 #ifdef BUILD_RADIALGRADIENT_TABLE | 67 #ifdef BUILD_RADIALGRADIENT_TABLE |
66 SkRadialGradient_BuildTable(); | 68 SkRadialGradient_BuildTable(); |
67 #endif | 69 #endif |
68 | 70 |
69 #ifdef SK_DEBUGx | 71 #ifdef SK_DEBUGx |
(...skipping 101 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 |