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

Side by Side Diff: src/gpu/GrResourceCache2.h

Issue 504313002: Make GrGpuResources register with GrResourceCache2 after fully constructed. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix insertion for GlyphPathRange. 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 | « src/gpu/GrPathRange.h ('k') | src/gpu/GrResourceCache2.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 2014 Google Inc. 3 * Copyright 2014 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 #ifndef GrResourceCache2_DEFINED 9 #ifndef GrResourceCache2_DEFINED
10 #define GrResourceCache2_DEFINED 10 #define GrResourceCache2_DEFINED
(...skipping 15 matching lines...) Expand all
26 26
27 void insertResource(GrGpuResource* resource); 27 void insertResource(GrGpuResource* resource);
28 28
29 void removeResource(GrGpuResource* resource); 29 void removeResource(GrGpuResource* resource);
30 30
31 void abandonAll(); 31 void abandonAll();
32 32
33 void releaseAll(); 33 void releaseAll();
34 34
35 private: 35 private:
36 #ifdef SK_DEBUG
37 bool isInCache(const GrGpuResource* r) const {
38 return fResources.isInList(r);
39 }
40 #endif
41
36 int fCount; 42 int fCount;
37 SkTInternalLList<GrGpuResource> fResources; 43 SkTInternalLList<GrGpuResource> fResources;
38 }; 44 };
39 45
40 #endif 46 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPathRange.h ('k') | src/gpu/GrResourceCache2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698