OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrVkResourceProvider_DEFINED | 8 #ifndef GrVkResourceProvider_DEFINED |
9 #define GrVkResourceProvider_DEFINED | 9 #define GrVkResourceProvider_DEFINED |
10 | 10 |
11 #include "GrGpu.h" | 11 #include "GrGpu.h" |
12 #include "GrVkDescriptorPool.h" | 12 #include "GrVkDescriptorPool.h" |
13 #include "GrVkPipelineState.h" | 13 #include "GrVkPipelineState.h" |
14 #include "GrVkResource.h" | 14 #include "GrVkResource.h" |
15 #include "GrVkUtil.h" | 15 #include "GrVkUtil.h" |
16 #include "SkTArray.h" | 16 #include "SkTArray.h" |
17 #include "SkTDynamicHash.h" | 17 #include "SkTDynamicHash.h" |
18 | 18 |
19 #include "vulkan/vulkan.h" | 19 #include "vk/GrVkDefines.h" |
20 | 20 |
21 class GrPipeline; | 21 class GrPipeline; |
22 class GrPrimitiveProcessor; | 22 class GrPrimitiveProcessor; |
23 class GrTextureParams; | 23 class GrTextureParams; |
24 class GrVkCommandBuffer; | 24 class GrVkCommandBuffer; |
25 class GrVkGpu; | 25 class GrVkGpu; |
26 class GrVkPipeline; | 26 class GrVkPipeline; |
27 class GrVkRenderPass; | 27 class GrVkRenderPass; |
28 class GrVkRenderTarget; | 28 class GrVkRenderTarget; |
29 class GrVkSampler; | 29 class GrVkSampler; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 // Stores GrVkSampler objects that we've already created so we can reuse the
m across multiple | 141 // Stores GrVkSampler objects that we've already created so we can reuse the
m across multiple |
142 // GrVkPipelineStates | 142 // GrVkPipelineStates |
143 SkTDynamicHash<GrVkSampler, uint8_t> fSamplers; | 143 SkTDynamicHash<GrVkSampler, uint8_t> fSamplers; |
144 | 144 |
145 // Cache of GrVkPipelineStates | 145 // Cache of GrVkPipelineStates |
146 PipelineStateCache* fPipelineStateCache; | 146 PipelineStateCache* fPipelineStateCache; |
147 }; | 147 }; |
148 | 148 |
149 #endif | 149 #endif |
OLD | NEW |