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

Side by Side Diff: src/gpu/GrContext.cpp

Issue 1088683004: add textblob cache freeall (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc Created 5 years, 8 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 | « no previous file | src/gpu/GrTextBlobCache.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 2011 Google Inc. 3 * Copyright 2011 Google Inc.
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 #include "GrContext.h" 9 #include "GrContext.h"
10 10
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 delete fDrawBufferIBAllocPool; 187 delete fDrawBufferIBAllocPool;
188 fDrawBufferIBAllocPool = NULL; 188 fDrawBufferIBAllocPool = NULL;
189 189
190 fAARectRenderer->reset(); 190 fAARectRenderer->reset();
191 fOvalRenderer->reset(); 191 fOvalRenderer->reset();
192 192
193 fBatchFontCache->freeAll(); 193 fBatchFontCache->freeAll();
194 fFontCache->freeAll(); 194 fFontCache->freeAll();
195 fLayerCache->freeAll(); 195 fLayerCache->freeAll();
196 fTextBlobCache->freeAll();
196 } 197 }
197 198
198 void GrContext::resetContext(uint32_t state) { 199 void GrContext::resetContext(uint32_t state) {
199 fGpu->markContextDirty(state); 200 fGpu->markContextDirty(state);
200 } 201 }
201 202
202 void GrContext::freeGpuResources() { 203 void GrContext::freeGpuResources() {
203 this->flush(); 204 this->flush();
204 205
205 if (fDrawBuffer) { 206 if (fDrawBuffer) {
(...skipping 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 } 2031 }
2031 } 2032 }
2032 2033
2033 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { 2034 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) {
2034 fGpu->removeGpuTraceMarker(marker); 2035 fGpu->removeGpuTraceMarker(marker);
2035 if (fDrawBuffer) { 2036 if (fDrawBuffer) {
2036 fDrawBuffer->removeGpuTraceMarker(marker); 2037 fDrawBuffer->removeGpuTraceMarker(marker);
2037 } 2038 }
2038 } 2039 }
2039 2040
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrTextBlobCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698