Move GrVkInterface out of public API.
Bug: skia:
Change-Id: I8b73982e4c9372af1c35bfc5e665c2c146d7d9f5
Reviewed-on: https://skia-review.googlesource.com/141121
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/vk/GrVkInterface.cpp b/src/gpu/vk/GrVkInterface.cpp
index dedc264..f658505 100644
--- a/src/gpu/vk/GrVkInterface.cpp
+++ b/src/gpu/vk/GrVkInterface.cpp
@@ -5,34 +5,14 @@
* found in the LICENSE file.
*/
-#include "vk/GrVkInterface.h"
+#include "GrVkInterface.h"
#include "vk/GrVkBackendContext.h"
#include "vk/GrVkUtil.h"
#define ACQUIRE_PROC(name, instance, device) fFunctions.f##name = \
reinterpret_cast<PFN_vk##name>(getProc("vk"#name, instance, device));
-GrVkInterface::GetProc make_unified_getter(const GrVkInterface::GetInstanceProc& iproc,
- const GrVkInterface::GetDeviceProc& dproc) {
- return [&iproc, &dproc](const char* proc_name, VkInstance instance, VkDevice device) {
- if (device != VK_NULL_HANDLE) {
- return dproc(device, proc_name);
- }
- return iproc(instance, proc_name);
- };
-}
-
-GrVkInterface::GrVkInterface(const GetInstanceProc& getInstanceProc,
- const GetDeviceProc& getDeviceProc,
- VkInstance instance,
- VkDevice device,
- uint32_t extensionFlags)
- : GrVkInterface(make_unified_getter(getInstanceProc, getDeviceProc),
- instance,
- device,
- extensionFlags) {}
-
-GrVkInterface::GrVkInterface(GetProc getProc,
+GrVkInterface::GrVkInterface(GrVkGetProc getProc,
VkInstance instance,
VkDevice device,
uint32_t extensionFlags) {