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 25 matching lines...) Expand all Loading... |
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 | 40 #ifdef SK_TRACE_VK_RESOURCES |
41 void dumpInfo() const override { | 41 void dumpInfo() const override { |
42 SkDebugf("GrVkPipeline: %d (%d refs)\n", fPipeline, this->getRefCnt()); | 42 SkDebugf("GrVkPipeline: %d (%d refs)\n", fPipeline, this->getRefCnt()); |
43 } | 43 } |
44 #endif | 44 #endif |
45 | 45 |
46 private: | 46 protected: |
47 GrVkPipeline(VkPipeline pipeline) : INHERITED(), fPipeline(pipeline) {} | 47 GrVkPipeline(VkPipeline pipeline) : INHERITED(), fPipeline(pipeline) {} |
48 | 48 |
49 GrVkPipeline(const GrVkPipeline&); | 49 VkPipeline fPipeline; |
50 GrVkPipeline& operator=(const GrVkPipeline&); | |
51 | 50 |
| 51 private: |
52 void freeGPUData(const GrVkGpu* gpu) const override; | 52 void freeGPUData(const GrVkGpu* gpu) const override; |
53 | 53 |
54 VkPipeline fPipeline; | |
55 | |
56 typedef GrVkResource INHERITED; | 54 typedef GrVkResource INHERITED; |
57 }; | 55 }; |
58 | 56 |
59 #endif | 57 #endif |
OLD | NEW |