Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1388)

Side by Side Diff: src/core/SkGraphics.cpp

Issue 306943003: SkLazyPtr, mk. 2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: drop static Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkData.cpp ('k') | src/core/SkLazyPtr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/core/SkData.cpp ('k') | src/core/SkLazyPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698