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

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

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