Chromium Code Reviews| Index: src/gpu/vk/GrVkDescriptorSet.h |
| diff --git a/src/gpu/vk/GrVkDescriptorSet.h b/src/gpu/vk/GrVkDescriptorSet.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0d3c5af306dc3ed03a1ea153a5ecc53321859e35 |
| --- /dev/null |
| +++ b/src/gpu/vk/GrVkDescriptorSet.h |
| @@ -0,0 +1,44 @@ |
| +/* |
| +* Copyright 2016 Google Inc. |
| +* |
| +* Use of this source code is governed by a BSD-style license that can be |
| +* found in the LICENSE file. |
| +*/ |
| + |
| +#ifndef GrVkDescriptorSet_DEFINED |
| +#define GrVkDescriptorSet_DEFINED |
| + |
| +#include "GrVkDescriptorSetManager.h" |
| +#include "GrVkResource.h" |
| +#include "vk/GrVkDefines.h" |
| + |
| +class GrVkDescriptorPool; |
| +class GrVkGpu; |
| + |
| +class GrVkDescriptorSet : public GrVkRecycledResource { |
| +public: |
| + GrVkDescriptorSet(VkDescriptorSet descSet, |
| + GrVkDescriptorPool* pool, |
| + GrVkDescriptorSetManager::Handle handle); |
| + |
| + ~GrVkDescriptorSet() override {} |
| + |
| + VkDescriptorSet descriptorSet() const { return fDescSet; } |
| + |
| +#ifdef SK_TRACE_VK_RESOURCES |
| + void dumpInfo() const override { |
|
jvanverth1
2016/07/21 15:30:06
Indented too far.
egdaniel
2016/07/21 17:27:11
Done.
|
| + SkDebugf("GrVkDescriptorSet: %d (%d refs)\n", fDescSet, this->getRefCnt()); |
| + } |
| +#endif |
| + |
| +private: |
| + void freeGPUData(const GrVkGpu* gpu) const override; |
| + void abandonSubResources() const override; |
| + void onRecycle(GrVkGpu* gpu) const override; |
| + |
| + VkDescriptorSet fDescSet; |
| + SkDEBUGCODE(mutable) GrVkDescriptorPool* fPool; |
| + GrVkDescriptorSetManager::Handle fHandle; |
| +}; |
| + |
| +#endif |