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

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

Issue 1329853005: Make SkGraphics::Term a no-op, stop calling it. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove deprecation 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 | « samplecode/SampleApp.cpp ('k') | src/core/SkPaint.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 /* 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
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
67 /////////////////////////////////////////////////////////////////////////////// 61 ///////////////////////////////////////////////////////////////////////////////
68 62
69 void SkGraphics::DumpMemoryStatistics(SkTraceMemoryDump* dump) { 63 void SkGraphics::DumpMemoryStatistics(SkTraceMemoryDump* dump) {
70 SkResourceCache::DumpMemoryStatistics(dump); 64 SkResourceCache::DumpMemoryStatistics(dump);
71 SkGlyphCache::DumpMemoryStatistics(dump); 65 SkGlyphCache::DumpMemoryStatistics(dump);
72 } 66 }
73 67
74 /////////////////////////////////////////////////////////////////////////////// 68 ///////////////////////////////////////////////////////////////////////////////
75 69
76 static const char kFontCacheLimitStr[] = "font-cache-limit"; 70 static const char kFontCacheLimitStr[] = "font-cache-limit";
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 if (nextEqual) { 105 if (nextEqual) {
112 val = (size_t) atoi(nextEqual + 1); 106 val = (size_t) atoi(nextEqual + 1);
113 } 107 }
114 (gFlags[i].fFunc)(val); 108 (gFlags[i].fFunc)(val);
115 break; 109 break;
116 } 110 }
117 } 111 }
118 flags = nextSemi + 1; 112 flags = nextSemi + 1;
119 } while (nextSemi); 113 } while (nextSemi);
120 } 114 }
OLDNEW
« no previous file with comments | « samplecode/SampleApp.cpp ('k') | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698