Remove unused function CreateSkiaInterface (flutter/engine#5812)
* Remove unused function CreateSkiaInterface. * Remove include.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user