OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |