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 // WindowSurfaceEGL.h: EGL implementation of egl::Surface for windows 8 9 #ifndef LIBANGLE_RENDERER_GL_EGL_WINDOWSURFACEEGL_H_ 10 #define LIBANGLE_RENDERER_GL_EGL_WINDOWSURFACEEGL_H_ 11 12 #include "libANGLE/renderer/gl/egl/SurfaceEGL.h" 13 14 namespace rx 15 { 16 17 class WindowSurfaceEGL : public SurfaceEGL 18 { 19 public: 20 WindowSurfaceEGL(const egl::SurfaceState &state, 21 const FunctionsEGL *egl, 22 EGLConfig config, 23 EGLNativeWindowType window); 24 ~WindowSurfaceEGL() override; 25 26 egl::Error initialize(const egl::Display *display) override; 27 28 egl::Error getBufferAge(const gl::Context *context, EGLint *age) override; 29 30 private: 31 EGLNativeWindowType mWindow; 32 }; 33 34 } // namespace rx 35 36 #endif // LIBANGLE_RENDERER_GL_EGL_WINDOWSURFACEEGL_H_ 37