OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #include "SkGraphics.h" | 9 #include "SkGraphics.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 if (patch) { | 43 if (patch) { |
44 *patch = SKIA_VERSION_PATCH; | 44 *patch = SKIA_VERSION_PATCH; |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 void SkGraphics::Init() { | 48 void SkGraphics::Init() { |
49 // SkGraphics::Init() must be thread-safe and idempotent. | 49 // SkGraphics::Init() must be thread-safe and idempotent. |
50 SkCpu::CacheRuntimeFeatures(); | 50 SkCpu::CacheRuntimeFeatures(); |
51 SkOpts::Init(); | 51 SkOpts::Init(); |
52 | 52 |
53 #ifdef SK_DEVELOPER | 53 #ifdef SK_DEBUG |
54 skRTConfRegistry().possiblyDumpFile(); | 54 skRTConfRegistry().possiblyDumpFile(); |
55 skRTConfRegistry().validate(); | 55 skRTConfRegistry().validate(); |
56 if (skRTConfRegistry().hasNonDefault()) { | 56 if (skRTConfRegistry().hasNonDefault()) { |
57 SkDebugf("Non-default runtime configuration options:\n"); | 57 SkDebugf("Non-default runtime configuration options:\n"); |
58 skRTConfRegistry().printNonDefault(); | 58 skRTConfRegistry().printNonDefault(); |
59 } | 59 } |
60 #endif | 60 #endif |
61 } | 61 } |
62 | 62 |
63 /////////////////////////////////////////////////////////////////////////////// | 63 /////////////////////////////////////////////////////////////////////////////// |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 if (nextEqual) { | 113 if (nextEqual) { |
114 val = (size_t) atoi(nextEqual + 1); | 114 val = (size_t) atoi(nextEqual + 1); |
115 } | 115 } |
116 (gFlags[i].fFunc)(val); | 116 (gFlags[i].fFunc)(val); |
117 break; | 117 break; |
118 } | 118 } |
119 } | 119 } |
120 flags = nextSemi + 1; | 120 flags = nextSemi + 1; |
121 } while (nextSemi); | 121 } while (nextSemi); |
122 } | 122 } |
OLD | NEW |