Remove unused function CreateSkiaInterface (flutter/engine#5812)

* Remove unused function CreateSkiaInterface.

* Remove include.
This commit is contained in:
egdaniel
2018-07-23 18:27:41 -04:00
committed by Brian Osman
parent 4c3bc3645f
commit 192aaabd4d
2 changed files with 0 additions and 24 deletions

View File

@@ -206,27 +206,6 @@ PFN_vkVoidFunction VulkanProcTable::AcquireProc(
return GetDeviceProcAddr(device, proc_name);
}
sk_sp<GrVkInterface> VulkanProcTable::CreateSkiaInterface() const {
if (!IsValid()) {
return nullptr;
}
GrVkInterface::GetProc proc = [this](const char* proc_name,
VkInstance instance, VkDevice device) {
if (device != VK_NULL_HANDLE) {
auto result = AcquireProc(proc_name, {device, nullptr});
if (result != nullptr) {
return result;
}
}
return AcquireProc(proc_name, {instance, nullptr});
};
return sk_make_sp<GrVkInterface>(proc, instance_, device_,
0 /* extensions */);
}
GrVkGetProc VulkanProcTable::CreateSkiaGetProc() const {
if (!IsValid()) {
return nullptr;

View File

@@ -12,7 +12,6 @@
#include "lib/fxl/memory/ref_ptr.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/skia/include/gpu/vk/GrVkBackendContext.h"
#include "third_party/skia/include/gpu/vk/GrVkInterface.h"
namespace vulkan {
@@ -60,8 +59,6 @@ class VulkanProcTable : public fxl::RefCountedThreadSafe<VulkanProcTable> {
bool SetupDeviceProcAddresses(const VulkanHandle<VkDevice>& device);
// CreateSkiaInterface is deprecated.
sk_sp<GrVkInterface> CreateSkiaInterface() const;
GrVkGetProc CreateSkiaGetProc() const;
#define DEFINE_PROC(name) Proc<PFN_vk##name> name;