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

Unified Diff: src/gpu/vk/GrVkDescriptorPool.h

Issue 1723503002: Revert of Add vulkan files into skia repo. (Closed) Base URL: https://skia.googlesource.com/skia.git@merge
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/vk/GrVkCommandBuffer.cpp ('k') | src/gpu/vk/GrVkDescriptorPool.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkDescriptorPool.h
diff --git a/src/gpu/vk/GrVkDescriptorPool.h b/src/gpu/vk/GrVkDescriptorPool.h
deleted file mode 100644
index ebbf230708d55a615d2b32c515cd3300b5ee9747..0000000000000000000000000000000000000000
--- a/src/gpu/vk/GrVkDescriptorPool.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-* 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 GrVkDescriptorPool_DEFINED
-#define GrVkDescriptorPool_DEFINED
-
-#include "GrVkResource.h"
-
-#include "vulkan/vulkan.h"
-
-class GrVkGpu;
-
-class GrVkDescriptorPool : public GrVkResource {
-public:
- class DescriptorTypeCounts {
- public:
- DescriptorTypeCounts() {
- memset(fDescriptorTypeCount, 0, sizeof(fDescriptorTypeCount));
- }
-
- void setTypeCount(VkDescriptorType type, uint8_t count);
- uint32_t numPoolSizes() const;
-
- // Determines if for each i, that.fDescriptorTypeCount[i] <= fDescriptorTypeCount[i];
- bool isSuperSet(const DescriptorTypeCounts& that) const;
- private:
- uint8_t fDescriptorTypeCount[VK_DESCRIPTOR_TYPE_RANGE_SIZE];
-
- friend class GrVkDescriptorPool;
- };
-
- explicit GrVkDescriptorPool(const GrVkGpu* gpu, const DescriptorTypeCounts& typeCounts);
-
- VkDescriptorPool descPool() const { return fDescPool; }
-
- void reset(const GrVkGpu* gpu);
-
- // Returns whether or not this descriptor pool could be used, assuming it gets fully reset and
- // not in use by another draw, to support the requested typeCounts.
- bool isCompatible(const DescriptorTypeCounts& typeCounts) const;
-
-private:
- void freeGPUData(const GrVkGpu* gpu) const override;
-
- DescriptorTypeCounts fTypeCounts;
- VkDescriptorPool fDescPool;
-
- typedef GrVkResource INHERITED;
-};
-
-
-#endif
« no previous file with comments | « src/gpu/vk/GrVkCommandBuffer.cpp ('k') | src/gpu/vk/GrVkDescriptorPool.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698