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 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 200 |
201 GrVkRenderPass* getCompatibleRenderPass() const { | 201 GrVkRenderPass* getCompatibleRenderPass() const { |
202 // The first GrVkRenderpass should always exist since we create the
basic load store | 202 // The first GrVkRenderpass should always exist since we create the
basic load store |
203 // render pass on create | 203 // render pass on create |
204 SkASSERT(fRenderPasses[0]); | 204 SkASSERT(fRenderPasses[0]); |
205 return fRenderPasses[0]; | 205 return fRenderPasses[0]; |
206 } | 206 } |
207 | 207 |
208 GrVkRenderPass* getRenderPass(const GrVkGpu* gpu, | 208 GrVkRenderPass* getRenderPass(const GrVkGpu* gpu, |
209 const GrVkRenderPass::LoadStoreOps& colorO
ps, | 209 const GrVkRenderPass::LoadStoreOps& colorO
ps, |
210 const GrVkRenderPass::LoadStoreOps& resolv
eOps, | |
211 const GrVkRenderPass::LoadStoreOps& stenci
lOps); | 210 const GrVkRenderPass::LoadStoreOps& stenci
lOps); |
212 | 211 |
213 void releaseResources(const GrVkGpu* gpu); | 212 void releaseResources(const GrVkGpu* gpu); |
214 void abandonResources(); | 213 void abandonResources(); |
215 | 214 |
216 private: | 215 private: |
217 SkSTArray<4, GrVkRenderPass*> fRenderPasses; | 216 SkSTArray<4, GrVkRenderPass*> fRenderPasses; |
218 int fLastReturnedIndex; | 217 int fLastReturnedIndex; |
219 }; | 218 }; |
220 | 219 |
(...skipping 21 matching lines...) Expand all Loading... |
242 | 241 |
243 // Cache of GrVkPipelineStates | 242 // Cache of GrVkPipelineStates |
244 PipelineStateCache* fPipelineStateCache; | 243 PipelineStateCache* fPipelineStateCache; |
245 | 244 |
246 SkSTArray<4, GrVkDescriptorSetManager, true> fDescriptorSetManagers; | 245 SkSTArray<4, GrVkDescriptorSetManager, true> fDescriptorSetManagers; |
247 | 246 |
248 GrVkDescriptorSetManager::Handle fUniformDSHandle; | 247 GrVkDescriptorSetManager::Handle fUniformDSHandle; |
249 }; | 248 }; |
250 | 249 |
251 #endif | 250 #endif |
OLD | NEW |