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

Unified Diff: include/gpu/vk/GrVkInterface.h

Issue 1832613003: Revise layer, extension and feature setup for Vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove extra def of ENABLE_VK_LAYERS Created 4 years, 9 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 | « include/gpu/vk/GrVkBackendContext.h ('k') | src/gpu/vk/GrVkBackendContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/vk/GrVkInterface.h
diff --git a/include/gpu/vk/GrVkInterface.h b/include/gpu/vk/GrVkInterface.h
index cfab979bd723af248b2ab167f4626d30995c92ab..e36bfb1a023f98ff6147baed9faf45d707c09668 100644
--- a/include/gpu/vk/GrVkInterface.h
+++ b/include/gpu/vk/GrVkInterface.h
@@ -10,8 +10,6 @@
#include "SkRefCnt.h"
-#include "GrVkExtensions.h"
-
#include "vulkan/vulkan.h"
////////////////////////////////////////////////////////////////////////////////
@@ -26,8 +24,8 @@ struct GrVkInterface;
/**
* Creates a GrVkInterface.
*/
-const GrVkInterface* GrVkCreateInterface(VkInstance instance, VkPhysicalDevice physDev,
- VkDevice device);
+const GrVkInterface* GrVkCreateInterface(VkInstance instance, VkDevice device,
+ uint32_t extensionFlags);
/**
@@ -57,21 +55,6 @@ public:
// function pointers have been initialized for Vulkan version.
bool validate() const;
- GrVkExtensions fExtensions;
-
- bool hasInstanceExtension(const char ext[]) const {
- return fExtensions.hasInstanceExtension(ext);
- }
- bool hasDeviceExtension(const char ext[]) const {
- return fExtensions.hasDeviceExtension(ext);
- }
- bool hasInstanceLayer(const char ext[]) const {
- return fExtensions.hasInstanceLayer(ext);
- }
- bool hasDeviceLayer(const char ext[]) const {
- return fExtensions.hasDeviceLayer(ext);
- }
-
/**
* The function pointers are in a struct so that we can have a compiler generated assignment
* operator.
« no previous file with comments | « include/gpu/vk/GrVkBackendContext.h ('k') | src/gpu/vk/GrVkBackendContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698