Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: src/gpu/vk/GrVkPipeline.h

Issue 2115993002: Add resource tracking output and command buffer recycling (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/vk/GrVkImageView.h ('k') | src/gpu/vk/GrVkRenderPass.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkImageView.h ('k') | src/gpu/vk/GrVkRenderPass.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698