1 // 2 // Copyright 2018 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 // DisplayVkAndroid.h: 7 // Defines the class interface for DisplayVkAndroid, implementing DisplayVk for Android. 8 // 9 10 #ifndef LIBANGLE_RENDERER_VULKAN_ANDROID_DISPLAYVKANDROID_H_ 11 #define LIBANGLE_RENDERER_VULKAN_ANDROID_DISPLAYVKANDROID_H_ 12 13 #include "libANGLE/renderer/vulkan/DisplayVk.h" 14 15 namespace rx 16 { 17 class DisplayVkAndroid : public DisplayVk 18 { 19 public: 20 DisplayVkAndroid(const egl::DisplayState &state); 21 22 egl::Error initialize(egl::Display *display) override; 23 24 bool isValidNativeWindow(EGLNativeWindowType window) const override; 25 26 SurfaceImpl *createWindowSurfaceVk(const egl::SurfaceState &state, 27 EGLNativeWindowType window) override; 28 29 egl::ConfigSet generateConfigs() override; 30 bool checkConfigSupport(egl::Config *config) override; 31 32 egl::Error validateImageClientBuffer(const gl::Context *context, 33 EGLenum target, 34 EGLClientBuffer clientBuffer, 35 const egl::AttributeMap &attribs) const override; 36 37 ExternalImageSiblingImpl *createExternalImageSibling(const gl::Context *context, 38 EGLenum target, 39 EGLClientBuffer buffer, 40 const egl::AttributeMap &attribs) override; 41 42 const char *getWSIExtension() const override; 43 }; 44 45 } // namespace rx 46 47 #endif // LIBANGLE_RENDERER_VULKAN_ANDROID_DISPLAYVKANDROID_H_ 48