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 // DisplayVkFuchsia.h: 7 // Subclasses DisplayVk for the Fuchsia platform. 8 // 9 10 #ifndef LIBANGLE_RENDERER_VULKAN_FUCHSIA_DISPLAYVKFUCHSIA_H_ 11 #define LIBANGLE_RENDERER_VULKAN_FUCHSIA_DISPLAYVKFUCHSIA_H_ 12 13 #include "libANGLE/renderer/vulkan/DisplayVk.h" 14 15 namespace rx 16 { 17 18 class DisplayVkFuchsia : public DisplayVk 19 { 20 public: 21 DisplayVkFuchsia(const egl::DisplayState &state); 22 23 bool isValidNativeWindow(EGLNativeWindowType window) const override; 24 25 SurfaceImpl *createWindowSurfaceVk(const egl::SurfaceState &state, 26 EGLNativeWindowType window, 27 EGLint width, 28 EGLint height) override; 29 30 egl::ConfigSet generateConfigs() override; 31 bool checkConfigSupport(egl::Config *config) override; 32 33 const char *getWSIExtension() const override; 34 const char *getWSILayer() const override; 35 }; 36 37 } // namespace rx 38 39 #endif // LIBANGLE_RENDERER_VULKAN_FUCHSIA_DISPLAYVKFUCHSIA_H_ 40