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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 } | 121 } |
122 SkDebugf("SkGraphics: font cache limit %dK\n", | 122 SkDebugf("SkGraphics: font cache limit %dK\n", |
123 GetFontCacheLimit() >> 10); | 123 GetFontCacheLimit() >> 10); |
124 | 124 |
125 #endif | 125 #endif |
126 | 126 |
127 } | 127 } |
128 | 128 |
129 void SkGraphics::Term() { | 129 void SkGraphics::Term() { |
130 PurgeFontCache(); | 130 PurgeFontCache(); |
| 131 PurgeResourceCache(); |
131 SkPaint::Term(); | 132 SkPaint::Term(); |
132 } | 133 } |
133 | 134 |
134 /////////////////////////////////////////////////////////////////////////////// | 135 /////////////////////////////////////////////////////////////////////////////// |
135 | 136 |
136 static const char kFontCacheLimitStr[] = "font-cache-limit"; | 137 static const char kFontCacheLimitStr[] = "font-cache-limit"; |
137 static const size_t kFontCacheLimitLen = sizeof(kFontCacheLimitStr) - 1; | 138 static const size_t kFontCacheLimitLen = sizeof(kFontCacheLimitStr) - 1; |
138 | 139 |
139 static const struct { | 140 static const struct { |
140 const char* fStr; | 141 const char* fStr; |
(...skipping 30 matching lines...) Expand all Loading... |
171 if (nextEqual) { | 172 if (nextEqual) { |
172 val = (size_t) atoi(nextEqual + 1); | 173 val = (size_t) atoi(nextEqual + 1); |
173 } | 174 } |
174 (gFlags[i].fFunc)(val); | 175 (gFlags[i].fFunc)(val); |
175 break; | 176 break; |
176 } | 177 } |
177 } | 178 } |
178 flags = nextSemi + 1; | 179 flags = nextSemi + 1; |
179 } while (nextSemi); | 180 } while (nextSemi); |
180 } | 181 } |
OLD | NEW |