Flutter Engine
The Flutter Engine
vulkan_native_surface.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_VULKAN_VULKAN_NATIVE_SURFACE_H_
6#define FLUTTER_VULKAN_VULKAN_NATIVE_SURFACE_H_
7
8#include "flutter/fml/macros.h"
9#include "flutter/vulkan/procs/vulkan_handle.h"
10#include "flutter/vulkan/procs/vulkan_proc_table.h"
12
13namespace vulkan {
14
16 public:
17 virtual ~VulkanNativeSurface() = default;
18
19 virtual const char* GetExtensionName() const = 0;
20
21 virtual VkSurfaceKHR CreateSurfaceHandle(
23 const VulkanHandle<VkInstance>& instance) const = 0;
24
25 virtual bool IsValid() const = 0;
26
27 virtual SkISize GetSize() const = 0;
28};
29
30} // namespace vulkan
31
32#endif // FLUTTER_VULKAN_VULKAN_NATIVE_SURFACE_H_
virtual const char * GetExtensionName() const =0
virtual bool IsValid() const =0
virtual ~VulkanNativeSurface()=default
virtual SkISize GetSize() const =0
virtual VkSurfaceKHR CreateSurfaceHandle(VulkanProcTable &vk, const VulkanHandle< VkInstance > &instance) const =0
VkInstance instance
Definition: main.cc:48
vk
Definition: malisc.py:42
Definition: SkSize.h:16