Introduce VulkanProvider

For more consistent access to base vulkan functionality owned
elsewhere.
This commit is contained in:
Craig Stout 2017-12-14 15:20:22 -08:00 committed by craig stout
parent ced94b8bc1
commit 9ee335cdff

View File

@ -0,0 +1,20 @@
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_VULKAN_VULKAN_PROVIDER_H_
#define FLUTTER_VULKAN_VULKAN_PROVIDER_H_
#include "flutter/vulkan/vulkan_handle.h"
namespace vulkan {
class VulkanProvider {
public:
virtual const vulkan::VulkanProcTable& vk() = 0;
virtual const vulkan::VulkanHandle<VkDevice>& vk_device() = 0;
};
} // namespace vulkan
#endif // FLUTTER_VULKAN_VULKAN_PROVIDER_H_