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) override; 27 28 egl::ConfigSet generateConfigs() override; 29 bool checkConfigSupport(egl::Config *config) override; 30 31 const char *getWSIExtension() const override; 32 const char *getWSILayer() const override; 33 }; 34 35 } // namespace rx 36 37 #endif // LIBANGLE_RENDERER_VULKAN_FUCHSIA_DISPLAYVKFUCHSIA_H_ 38