| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 SkPaint::Term(); | 131 SkPaint::Term(); |
| 132 SkXfermode::Term(); | |
| 133 } | 132 } |
| 134 | 133 |
| 135 /////////////////////////////////////////////////////////////////////////////// | 134 /////////////////////////////////////////////////////////////////////////////// |
| 136 | 135 |
| 137 static const char kFontCacheLimitStr[] = "font-cache-limit"; | 136 static const char kFontCacheLimitStr[] = "font-cache-limit"; |
| 138 static const size_t kFontCacheLimitLen = sizeof(kFontCacheLimitStr) - 1; | 137 static const size_t kFontCacheLimitLen = sizeof(kFontCacheLimitStr) - 1; |
| 139 | 138 |
| 140 static const struct { | 139 static const struct { |
| 141 const char* fStr; | 140 const char* fStr; |
| 142 size_t fLen; | 141 size_t fLen; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 172 if (nextEqual) { | 171 if (nextEqual) { |
| 173 val = (size_t) atoi(nextEqual + 1); | 172 val = (size_t) atoi(nextEqual + 1); |
| 174 } | 173 } |
| 175 (gFlags[i].fFunc)(val); | 174 (gFlags[i].fFunc)(val); |
| 176 break; | 175 break; |
| 177 } | 176 } |
| 178 } | 177 } |
| 179 flags = nextSemi + 1; | 178 flags = nextSemi + 1; |
| 180 } while (nextSemi); | 179 } while (nextSemi); |
| 181 } | 180 } |
| OLD | NEW |