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

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

Issue 579753003: Fix typo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Missed an instance Created 6 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 | « no previous file | src/gpu/GrGpu.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 9
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 SkSafeUnref(fPathRendererChain); 180 SkSafeUnref(fPathRendererChain);
181 SkSafeUnref(fSoftwarePathRenderer); 181 SkSafeUnref(fSoftwarePathRenderer);
182 fDrawState->unref(); 182 fDrawState->unref();
183 } 183 }
184 184
185 void GrContext::abandonContext() { 185 void GrContext::abandonContext() {
186 // abandon first to so destructors 186 // abandon first to so destructors
187 // don't try to free the resources in the API. 187 // don't try to free the resources in the API.
188 fResourceCache2->abandonAll(); 188 fResourceCache2->abandonAll();
189 189
190 fGpu->contextAbandonded(); 190 fGpu->contextAbandoned();
191 191
192 // a path renderer may be holding onto resources that 192 // a path renderer may be holding onto resources that
193 // are now unusable 193 // are now unusable
194 SkSafeSetNull(fPathRendererChain); 194 SkSafeSetNull(fPathRendererChain);
195 SkSafeSetNull(fSoftwarePathRenderer); 195 SkSafeSetNull(fSoftwarePathRenderer);
196 196
197 delete fDrawBuffer; 197 delete fDrawBuffer;
198 fDrawBuffer = NULL; 198 fDrawBuffer = NULL;
199 199
200 delete fDrawBufferVBAllocPool; 200 delete fDrawBufferVBAllocPool;
(...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 fDrawBuffer->removeGpuTraceMarker(marker); 1950 fDrawBuffer->removeGpuTraceMarker(marker);
1951 } 1951 }
1952 } 1952 }
1953 1953
1954 /////////////////////////////////////////////////////////////////////////////// 1954 ///////////////////////////////////////////////////////////////////////////////
1955 #if GR_CACHE_STATS 1955 #if GR_CACHE_STATS
1956 void GrContext::printCacheStats() const { 1956 void GrContext::printCacheStats() const {
1957 fResourceCache->printStats(); 1957 fResourceCache->printStats();
1958 } 1958 }
1959 #endif 1959 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698