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

Side by Side Diff: src/gpu/vk/GrVkFramebuffer.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/GrVkDescriptorPool.h ('k') | src/gpu/vk/GrVkGpu.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 GrVkFramebuffer_DEFINED 8 #ifndef GrVkFramebuffer_DEFINED
9 #define GrVkFramebuffer_DEFINED 9 #define GrVkFramebuffer_DEFINED
10 10
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 static GrVkFramebuffer* Create(GrVkGpu* gpu, 23 static GrVkFramebuffer* Create(GrVkGpu* gpu,
24 int width, int height, 24 int width, int height,
25 const GrVkRenderPass* renderPass, 25 const GrVkRenderPass* renderPass,
26 const GrVkImageView* colorAttachment, 26 const GrVkImageView* colorAttachment,
27 const GrVkImageView* resolveAttachment, 27 const GrVkImageView* resolveAttachment,
28 const GrVkImageView* stencilAttachment); 28 const GrVkImageView* stencilAttachment);
29 29
30 VkFramebuffer framebuffer() const { return fFramebuffer; } 30 VkFramebuffer framebuffer() const { return fFramebuffer; }
31 31
32 #ifdef SK_TRACE_VK_RESOURCES
33 void dumpInfo() const override {
34 SkDebugf("GrVkFramebuffer: %d (%d refs)\n", fFramebuffer, this->getRefCn t());
35 }
36 #endif
37
32 private: 38 private:
33 GrVkFramebuffer(VkFramebuffer framebuffer) : INHERITED(), fFramebuffer(frame buffer) {} 39 GrVkFramebuffer(VkFramebuffer framebuffer) : INHERITED(), fFramebuffer(frame buffer) {}
34 40
35 GrVkFramebuffer(const GrVkFramebuffer&); 41 GrVkFramebuffer(const GrVkFramebuffer&);
36 GrVkFramebuffer& operator=(const GrVkFramebuffer&); 42 GrVkFramebuffer& operator=(const GrVkFramebuffer&);
37 43
38 void freeGPUData(const GrVkGpu* gpu) const override; 44 void freeGPUData(const GrVkGpu* gpu) const override;
39 45
40 VkFramebuffer fFramebuffer; 46 VkFramebuffer fFramebuffer;
41 47
42 typedef GrVkResource INHERITED; 48 typedef GrVkResource INHERITED;
43 }; 49 };
44 50
45 #endif 51 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkDescriptorPool.h ('k') | src/gpu/vk/GrVkGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698