| OLD | NEW |
| 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 Loading... |
| 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 | |
| 42 int fCount; | 36 int fCount; |
| 43 SkTInternalLList<GrGpuResource> fResources; | 37 SkTInternalLList<GrGpuResource> fResources; |
| 44 }; | 38 }; |
| 45 | 39 |
| 46 #endif | 40 #endif |
| OLD | NEW |