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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 #ifdef SK_DEVELOPER | 51 #ifdef SK_DEVELOPER |
52 skRTConfRegistry().possiblyDumpFile(); | 52 skRTConfRegistry().possiblyDumpFile(); |
53 skRTConfRegistry().validate(); | 53 skRTConfRegistry().validate(); |
54 if (skRTConfRegistry().hasNonDefault()) { | 54 if (skRTConfRegistry().hasNonDefault()) { |
55 SkDebugf("Non-default runtime configuration options:\n"); | 55 SkDebugf("Non-default runtime configuration options:\n"); |
56 skRTConfRegistry().printNonDefault(); | 56 skRTConfRegistry().printNonDefault(); |
57 } | 57 } |
58 #endif | 58 #endif |
59 } | 59 } |
60 | 60 |
61 void SkGraphics::Term() { | |
62 PurgeFontCache(); | |
63 PurgeResourceCache(); | |
64 SkPaint::Term(); | |
65 } | |
66 | |
67 /////////////////////////////////////////////////////////////////////////////// | 61 /////////////////////////////////////////////////////////////////////////////// |
68 | 62 |
69 void SkGraphics::DumpMemoryStatistics(SkTraceMemoryDump* dump) { | 63 void SkGraphics::DumpMemoryStatistics(SkTraceMemoryDump* dump) { |
70 SkResourceCache::DumpMemoryStatistics(dump); | 64 SkResourceCache::DumpMemoryStatistics(dump); |
71 SkGlyphCache::DumpMemoryStatistics(dump); | 65 SkGlyphCache::DumpMemoryStatistics(dump); |
72 } | 66 } |
73 | 67 |
74 /////////////////////////////////////////////////////////////////////////////// | 68 /////////////////////////////////////////////////////////////////////////////// |
75 | 69 |
76 static const char kFontCacheLimitStr[] = "font-cache-limit"; | 70 static const char kFontCacheLimitStr[] = "font-cache-limit"; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 if (nextEqual) { | 105 if (nextEqual) { |
112 val = (size_t) atoi(nextEqual + 1); | 106 val = (size_t) atoi(nextEqual + 1); |
113 } | 107 } |
114 (gFlags[i].fFunc)(val); | 108 (gFlags[i].fFunc)(val); |
115 break; | 109 break; |
116 } | 110 } |
117 } | 111 } |
118 flags = nextSemi + 1; | 112 flags = nextSemi + 1; |
119 } while (nextSemi); | 113 } while (nextSemi); |
120 } | 114 } |
OLD | NEW |