xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/gl/egl/FunctionsEGLDL.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2016 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 
7 // FunctionsEGL.h: Implements FunctionsEGL with dlopen/dlsym/dlclose
8 
9 #ifndef LIBANGLE_RENDERER_GL_CROS_FUNCTIONSEGLDL_H_
10 #define LIBANGLE_RENDERER_GL_CROS_FUNCTIONSEGLDL_H_
11 
12 #include "libANGLE/renderer/gl/egl/FunctionsEGL.h"
13 #include "libANGLE/renderer/gl/egl/functionsegl_typedefs.h"
14 
15 namespace rx
16 {
17 class FunctionsEGLDL : public FunctionsEGL
18 {
19   public:
20     FunctionsEGLDL();
21     ~FunctionsEGLDL() override;
22 
23     egl::Error initialize(EGLAttrib platformType,
24                           EGLNativeDisplayType nativeDisplay,
25                           const char *libName,
26                           void *eglHandle);
27     void *getProcAddress(const char *name) const override;
28 
29   private:
30     PFNEGLGETPROCADDRESSPROC mGetProcAddressPtr;
31 };
32 }  // namespace rx
33 
34 #endif  // LIBANGLE_RENDERER_GL_CROS_FUNCTIONSEGLDL_H_
35