1 // 2 // Copyright 2019 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 // WindowSurfaceVkFuchsia.h: 7 // Subclasses WindowSurfaceVk for the Fuchsia platform. 8 // 9 10 #ifndef LIBANGLE_RENDERER_VULKAN_FUCHSIA_WINDOWSURFACEVKFUCHSIA_H_ 11 #define LIBANGLE_RENDERER_VULKAN_FUCHSIA_WINDOWSURFACEVKFUCHSIA_H_ 12 13 #include "libANGLE/renderer/vulkan/SurfaceVk.h" 14 15 namespace rx 16 { 17 18 class WindowSurfaceVkFuchsia : public WindowSurfaceVk 19 { 20 public: 21 WindowSurfaceVkFuchsia(const egl::SurfaceState &surfaceState, EGLNativeWindowType window); 22 ~WindowSurfaceVkFuchsia() override; 23 24 static bool isValidNativeWindow(EGLNativeWindowType window); 25 26 private: 27 angle::Result createSurfaceVk(vk::Context *context, gl::Extents *extentsOut) override; 28 angle::Result getCurrentWindowSize(vk::Context *context, gl::Extents *extentsOut) override; 29 }; 30 31 } // namespace rx 32 33 #endif // LIBANGLE_RENDERER_VULKAN_FUCHSIA_WINDOWSURFACEVKFUCHSIA_H_ 34