#ifndef FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_SURFACE_VULKAN_H_
#define FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_SURFACE_VULKAN_H_
#include <jni.h>
#include <memory>
#include "flutter/fml/macros.h"
#include "flutter/shell/platform/android/android_native_window.h"
#include "flutter/shell/platform/android/android_surface.h"
#include "flutter/vulkan/vulkan_window.h"
namespace flutter {
class AndroidSurfaceVulkan : public AndroidSurface {
public:
AndroidSurfaceVulkan();
~AndroidSurfaceVulkan() override;
bool IsValid() const override;
std::unique_ptr<Surface> CreateGPUSurface() override;
void TeardownOnScreenContext() override;
bool OnScreenSurfaceResize(const SkISize& size) const override;
bool ResourceContextMakeCurrent() override;
bool ResourceContextClearCurrent() override;
bool SetNativeWindow(fml::RefPtr<AndroidNativeWindow> window) override;
private:
fml::RefPtr<vulkan::VulkanProcTable> proc_table_;
fml::RefPtr<AndroidNativeWindow> native_window_;
FML_DISALLOW_COPY_AND_ASSIGN(AndroidSurfaceVulkan);
};
}
#endif