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

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

Issue 2163673002: Setup system in Vulkan to reuse VkDescriptorSet allocations. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nit 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/GrVkDescriptorSet.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef GrVkDescriptorSet_DEFINED
9 #define GrVkDescriptorSet_DEFINED
10
11 #include "GrVkDescriptorSetManager.h"
12 #include "GrVkResource.h"
13 #include "vk/GrVkDefines.h"
14
15 class GrVkDescriptorPool;
16 class GrVkGpu;
17
18 class GrVkDescriptorSet : public GrVkRecycledResource {
19 public:
20 GrVkDescriptorSet(VkDescriptorSet descSet,
21 GrVkDescriptorPool* pool,
22 GrVkDescriptorSetManager::Handle handle);
23
24 ~GrVkDescriptorSet() override {}
25
26 VkDescriptorSet descriptorSet() const { return fDescSet; }
27
28 #ifdef SK_TRACE_VK_RESOURCES
29 void dumpInfo() const override {
30 SkDebugf("GrVkDescriptorSet: %d (%d refs)\n", fDescSet, this->getRefCnt( ));
31 }
32 #endif
33
34 private:
35 void freeGPUData(const GrVkGpu* gpu) const override;
36 void abandonSubResources() const override;
37 void onRecycle(GrVkGpu* gpu) const override;
38
39 VkDescriptorSet fDescSet;
40 SkDEBUGCODE(mutable) GrVkDescriptorPool* fPool;
41 GrVkDescriptorSetManager::Handle fHandle;
42 };
43
44 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkCommandBuffer.cpp ('k') | src/gpu/vk/GrVkDescriptorSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698