| 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 GrVkPipeline_DEFINED | 8 #ifndef GrVkPipeline_DEFINED |
| 9 #define GrVkPipeline_DEFINED | 9 #define GrVkPipeline_DEFINED |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 int shaderStageCount, | 30 int shaderStageCount, |
| 31 GrPrimitiveType primitiveType, | 31 GrPrimitiveType primitiveType, |
| 32 const GrVkRenderPass& renderPass, | 32 const GrVkRenderPass& renderPass, |
| 33 VkPipelineLayout layout, | 33 VkPipelineLayout layout, |
| 34 VkPipelineCache cache); | 34 VkPipelineCache cache); |
| 35 | 35 |
| 36 VkPipeline pipeline() const { return fPipeline; } | 36 VkPipeline pipeline() const { return fPipeline; } |
| 37 | 37 |
| 38 static void SetDynamicState(GrVkGpu*, GrVkCommandBuffer*, const GrPipeline&)
; | 38 static void SetDynamicState(GrVkGpu*, GrVkCommandBuffer*, const GrPipeline&)
; |
| 39 | 39 |
| 40 #ifdef SK_TRACE_VK_RESOURCES |
| 41 void dumpInfo() const override { |
| 42 SkDebugf("GrVkPipeline: %d (%d refs)\n", fPipeline, this->getRefCnt()); |
| 43 } |
| 44 #endif |
| 40 | 45 |
| 41 private: | 46 private: |
| 42 GrVkPipeline(VkPipeline pipeline) : INHERITED(), fPipeline(pipeline) {} | 47 GrVkPipeline(VkPipeline pipeline) : INHERITED(), fPipeline(pipeline) {} |
| 43 | 48 |
| 44 GrVkPipeline(const GrVkPipeline&); | 49 GrVkPipeline(const GrVkPipeline&); |
| 45 GrVkPipeline& operator=(const GrVkPipeline&); | 50 GrVkPipeline& operator=(const GrVkPipeline&); |
| 46 | 51 |
| 47 void freeGPUData(const GrVkGpu* gpu) const override; | 52 void freeGPUData(const GrVkGpu* gpu) const override; |
| 48 | 53 |
| 49 VkPipeline fPipeline; | 54 VkPipeline fPipeline; |
| 50 | 55 |
| 51 typedef GrVkResource INHERITED; | 56 typedef GrVkResource INHERITED; |
| 52 }; | 57 }; |
| 53 | 58 |
| 54 #endif | 59 #endif |
| OLD | NEW |