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

Side by Side Diff: src/gpu/vk/GrVkDescriptorPool.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/GrVkCommandBuffer.cpp ('k') | src/gpu/vk/GrVkFramebuffer.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 GrVkDescriptorPool_DEFINED 8 #ifndef GrVkDescriptorPool_DEFINED
9 #define GrVkDescriptorPool_DEFINED 9 #define GrVkDescriptorPool_DEFINED
10 10
(...skipping 13 matching lines...) Expand all
24 GrVkDescriptorPool(const GrVkGpu* gpu, VkDescriptorType type, uint32_t count ); 24 GrVkDescriptorPool(const GrVkGpu* gpu, VkDescriptorType type, uint32_t count );
25 25
26 VkDescriptorPool descPool() const { return fDescPool; } 26 VkDescriptorPool descPool() const { return fDescPool; }
27 27
28 void reset(const GrVkGpu* gpu); 28 void reset(const GrVkGpu* gpu);
29 29
30 // Returns whether or not this descriptor pool could be used, assuming it ge ts fully reset and 30 // Returns whether or not this descriptor pool could be used, assuming it ge ts fully reset and
31 // not in use by another draw, to support the requested type and count. 31 // not in use by another draw, to support the requested type and count.
32 bool isCompatible(VkDescriptorType type, uint32_t count) const; 32 bool isCompatible(VkDescriptorType type, uint32_t count) const;
33 33
34 #ifdef SK_TRACE_VK_RESOURCES
35 void dumpInfo() const override {
36 SkDebugf("GrVkDescriptorPool: %d, type %d (%d refs)\n", fDescPool, fType ,
37 this->getRefCnt());
38 }
39 #endif
40
34 private: 41 private:
35 void freeGPUData(const GrVkGpu* gpu) const override; 42 void freeGPUData(const GrVkGpu* gpu) const override;
36 43
37 VkDescriptorType fType; 44 VkDescriptorType fType;
38 uint32_t fCount; 45 uint32_t fCount;
39 VkDescriptorPool fDescPool; 46 VkDescriptorPool fDescPool;
40 47
41 typedef GrVkResource INHERITED; 48 typedef GrVkResource INHERITED;
42 }; 49 };
43 50
44 #endif 51 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkCommandBuffer.cpp ('k') | src/gpu/vk/GrVkFramebuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698