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 |
61 /////////////////////////////////////////////////////////////////////////////// | 67 /////////////////////////////////////////////////////////////////////////////// |
62 | 68 |
63 void SkGraphics::DumpMemoryStatistics(SkTraceMemoryDump* dump) { | 69 void SkGraphics::DumpMemoryStatistics(SkTraceMemoryDump* dump) { |
64 SkResourceCache::DumpMemoryStatistics(dump); | 70 SkResourceCache::DumpMemoryStatistics(dump); |
65 SkGlyphCache::DumpMemoryStatistics(dump); | 71 SkGlyphCache::DumpMemoryStatistics(dump); |
66 } | 72 } |
67 | 73 |
68 /////////////////////////////////////////////////////////////////////////////// | 74 /////////////////////////////////////////////////////////////////////////////// |
69 | 75 |
70 static const char kFontCacheLimitStr[] = "font-cache-limit"; | 76 static const char kFontCacheLimitStr[] = "font-cache-limit"; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 if (nextEqual) { | 111 if (nextEqual) { |
106 val = (size_t) atoi(nextEqual + 1); | 112 val = (size_t) atoi(nextEqual + 1); |
107 } | 113 } |
108 (gFlags[i].fFunc)(val); | 114 (gFlags[i].fFunc)(val); |
109 break; | 115 break; |
110 } | 116 } |
111 } | 117 } |
112 flags = nextSemi + 1; | 118 flags = nextSemi + 1; |
113 } while (nextSemi); | 119 } while (nextSemi); |
114 } | 120 } |
OLD | NEW |