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 |
11 | 11 |
12 #include "GrGpuResource.h" | 12 #include "GrGpuResource.h" |
robertphillips
2014/10/08 17:29:31
Do we need these two new headers here ?
bsalomon
2014/10/08 17:32:52
Nope, this was paring down of a larger CL, forgot
| |
13 #include "GrResourceCache.h" | |
13 #include "GrResourceKey.h" | 14 #include "GrResourceKey.h" |
15 #include "SkTDynamicHash.h" | |
14 #include "SkTInternalLList.h" | 16 #include "SkTInternalLList.h" |
15 #include "SkTMultiMap.h" | 17 #include "SkTMultiMap.h" |
16 | 18 |
17 /** | 19 /** |
18 * Eventual replacement for GrResourceCache. Currently it simply holds a list | 20 * Eventual replacement for GrResourceCache. Currently it simply holds a list |
19 * of all GrGpuResource objects for a GrContext. It is used to invalidate all | 21 * of all GrGpuResource objects for a GrContext. It is used to invalidate all |
20 * the resources when necessary. | 22 * the resources when necessary. |
21 */ | 23 */ |
22 class GrResourceCache2 { | 24 class GrResourceCache2 { |
23 public: | 25 public: |
(...skipping 29 matching lines...) Expand all Loading... | |
53 }; | 55 }; |
54 typedef SkTMultiMap<GrGpuResource, GrResourceKey, ScratchMapTraits> ScratchM ap; | 56 typedef SkTMultiMap<GrGpuResource, GrResourceKey, ScratchMapTraits> ScratchM ap; |
55 | 57 |
56 int fCount; | 58 int fCount; |
57 SkTInternalLList<GrGpuResource> fResources; | 59 SkTInternalLList<GrGpuResource> fResources; |
58 // This map holds all resources that can be used as scratch resources. | 60 // This map holds all resources that can be used as scratch resources. |
59 ScratchMap fScratchMap; | 61 ScratchMap fScratchMap; |
60 }; | 62 }; |
61 | 63 |
62 #endif | 64 #endif |
OLD | NEW |