Skip to content

Commit

Permalink
Remove unused function CreateSkiaInterface (flutter#5812)
Browse files Browse the repository at this point in the history
* Remove unused function CreateSkiaInterface.

* Remove include.
  • Loading branch information
egdaniel authored and brianosman committed Jul 23, 2018
1 parent 33a4aef commit 380eb84
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
21 changes: 0 additions & 21 deletions vulkan/vulkan_proc_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions vulkan/vulkan_proc_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 380eb84

Please sign in to comment.