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

Side by Side Diff: src/core/SkGlyphCache_Globals.h

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 3 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/SkGlyphCache.cpp ('k') | src/core/SkImageCacherator.cpp » ('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 * Copyright 2010 Google Inc. 2 * Copyright 2010 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkGlyphCache_Globals_DEFINED 8 #ifndef SkGlyphCache_Globals_DEFINED
9 #define SkGlyphCache_Globals_DEFINED 9 #define SkGlyphCache_Globals_DEFINED
10 10
(...skipping 19 matching lines...) Expand all
30 fTotalMemoryUsed = 0; 30 fTotalMemoryUsed = 0;
31 fCacheSizeLimit = SK_DEFAULT_FONT_CACHE_LIMIT; 31 fCacheSizeLimit = SK_DEFAULT_FONT_CACHE_LIMIT;
32 fCacheCount = 0; 32 fCacheCount = 0;
33 fCacheCountLimit = SK_DEFAULT_FONT_CACHE_COUNT_LIMIT; 33 fCacheCountLimit = SK_DEFAULT_FONT_CACHE_COUNT_LIMIT;
34 } 34 }
35 35
36 ~SkGlyphCache_Globals() { 36 ~SkGlyphCache_Globals() {
37 SkGlyphCache* cache = fHead; 37 SkGlyphCache* cache = fHead;
38 while (cache) { 38 while (cache) {
39 SkGlyphCache* next = cache->fNext; 39 SkGlyphCache* next = cache->fNext;
40 SkDELETE(cache); 40 delete cache;
41 cache = next; 41 cache = next;
42 } 42 }
43 } 43 }
44 44
45 SkSpinlock fLock; 45 SkSpinlock fLock;
46 46
47 SkGlyphCache* internalGetHead() const { return fHead; } 47 SkGlyphCache* internalGetHead() const { return fHead; }
48 SkGlyphCache* internalGetTail() const; 48 SkGlyphCache* internalGetTail() const;
49 49
50 size_t getTotalMemoryUsed() const { return fTotalMemoryUsed; } 50 size_t getTotalMemoryUsed() const { return fTotalMemoryUsed; }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 int32_t fCacheCountLimit; 85 int32_t fCacheCountLimit;
86 int32_t fCacheCount; 86 int32_t fCacheCount;
87 87
88 // Checkout budgets, modulated by the specified min-bytes-needed-to-purge, 88 // Checkout budgets, modulated by the specified min-bytes-needed-to-purge,
89 // and attempt to purge caches to match. 89 // and attempt to purge caches to match.
90 // Returns number of bytes freed. 90 // Returns number of bytes freed.
91 size_t internalPurge(size_t minBytesNeeded = 0); 91 size_t internalPurge(size_t minBytesNeeded = 0);
92 }; 92 };
93 93
94 #endif 94 #endif
OLDNEW
« no previous file with comments | « src/core/SkGlyphCache.cpp ('k') | src/core/SkImageCacherator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698