xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/vulkan/linux/display/WindowSurfaceVkSimple.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2020 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 // WindowSurfaceVkSimple.h:
7 //    Defines the class interface for WindowSurfaceVkSimple, implementing WindowSurfaceVk.
8 //
9 
10 #ifndef LIBANGLE_RENDERER_VULKAN_DISPLAY_WINDOWSURFACEVKSIMPLE_H_
11 #define LIBANGLE_RENDERER_VULKAN_DISPLAY_WINDOWSURFACEVKSIMPLE_H_
12 
13 #include "libANGLE/renderer/vulkan/SurfaceVk.h"
14 
15 namespace rx
16 {
17 
18 class WindowSurfaceVkSimple final : public WindowSurfaceVk
19 {
20   public:
21     WindowSurfaceVkSimple(const egl::SurfaceState &surfaceState, EGLNativeWindowType window);
22     ~WindowSurfaceVkSimple() final;
23 
24   private:
25     angle::Result createSurfaceVk(vk::Context *context, gl::Extents *extentsOut) override;
26     angle::Result getCurrentWindowSize(vk::Context *context, gl::Extents *extentsOut) override;
27 };
28 
29 }  // namespace rx
30 
31 #endif  // LIBANGLE_RENDERER_VULKAN_DISPLAY_WINDOWSURFACEVKSIMPLE_H_
32