Chromium Code Reviews| 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 | |
|
robertphillips
2014/08/26 18:49:25
const ?
bsalomon
2014/08/26 20:56:45
Done.
| |
| 37 bool isInCache(const GrGpuResource* r) { | |
| 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 |
| OLD | NEW |