| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 class GrVkResourceProvider { | 38 class GrVkResourceProvider { |
| 39 public: | 39 public: |
| 40 GrVkResourceProvider(GrVkGpu* gpu); | 40 GrVkResourceProvider(GrVkGpu* gpu); |
| 41 ~GrVkResourceProvider(); | 41 ~GrVkResourceProvider(); |
| 42 | 42 |
| 43 // Set up any initial vk objects | 43 // Set up any initial vk objects |
| 44 void init(); | 44 void init(); |
| 45 | 45 |
| 46 GrVkPipeline* createPipeline(const GrPipeline& pipeline, | 46 GrVkPipeline* createPipeline(const GrPipeline& pipeline, |
| 47 const GrStencilSettings& stencil, |
| 47 const GrPrimitiveProcessor& primProc, | 48 const GrPrimitiveProcessor& primProc, |
| 48 VkPipelineShaderStageCreateInfo* shaderStageInf
o, | 49 VkPipelineShaderStageCreateInfo* shaderStageInf
o, |
| 49 int shaderStageCount, | 50 int shaderStageCount, |
| 50 GrPrimitiveType primitiveType, | 51 GrPrimitiveType primitiveType, |
| 51 const GrVkRenderPass& renderPass, | 52 const GrVkRenderPass& renderPass, |
| 52 VkPipelineLayout layout); | 53 VkPipelineLayout layout); |
| 53 | 54 |
| 54 GrVkCopyPipeline* findOrCreateCopyPipeline(const GrVkRenderTarget* dst, | 55 GrVkCopyPipeline* findOrCreateCopyPipeline(const GrVkRenderTarget* dst, |
| 55 VkPipelineShaderStageCreateInfo*, | 56 VkPipelineShaderStageCreateInfo*, |
| 56 VkPipelineLayout); | 57 VkPipelineLayout); |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 250 |
| 250 // Cache of GrVkPipelineStates | 251 // Cache of GrVkPipelineStates |
| 251 PipelineStateCache* fPipelineStateCache; | 252 PipelineStateCache* fPipelineStateCache; |
| 252 | 253 |
| 253 SkSTArray<4, GrVkDescriptorSetManager, true> fDescriptorSetManagers; | 254 SkSTArray<4, GrVkDescriptorSetManager, true> fDescriptorSetManagers; |
| 254 | 255 |
| 255 GrVkDescriptorSetManager::Handle fUniformDSHandle; | 256 GrVkDescriptorSetManager::Handle fUniformDSHandle; |
| 256 }; | 257 }; |
| 257 | 258 |
| 258 #endif | 259 #endif |
| OLD | NEW |