summaryrefslogtreecommitdiffstats
path: root/gfx/angle/src/libANGLE/renderer/gl/egl/WindowSurfaceEGL.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/angle/src/libANGLE/renderer/gl/egl/WindowSurfaceEGL.h')
-rwxr-xr-xgfx/angle/src/libANGLE/renderer/gl/egl/WindowSurfaceEGL.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/gfx/angle/src/libANGLE/renderer/gl/egl/WindowSurfaceEGL.h b/gfx/angle/src/libANGLE/renderer/gl/egl/WindowSurfaceEGL.h
new file mode 100755
index 000000000..f9da4c27c
--- /dev/null
+++ b/gfx/angle/src/libANGLE/renderer/gl/egl/WindowSurfaceEGL.h
@@ -0,0 +1,37 @@
+//
+// Copyright (c) 2016 The ANGLE Project Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+
+// WindowSurfaceEGL.h: EGL implementation of egl::Surface for windows
+
+#ifndef LIBANGLE_RENDERER_GL_EGL_WINDOWSURFACEEGL_H_
+#define LIBANGLE_RENDERER_GL_EGL_WINDOWSURFACEEGL_H_
+
+#include "libANGLE/renderer/gl/egl/SurfaceEGL.h"
+
+namespace rx
+{
+
+class WindowSurfaceEGL : public SurfaceEGL
+{
+ public:
+ WindowSurfaceEGL(const egl::SurfaceState &state,
+ const FunctionsEGL *egl,
+ EGLConfig config,
+ EGLNativeWindowType window,
+ const std::vector<EGLint> &attribList,
+ EGLContext context,
+ RendererGL *renderer);
+ ~WindowSurfaceEGL() override;
+
+ egl::Error initialize() override;
+
+ private:
+ EGLNativeWindowType mWindow;
+};
+
+} // namespace rx
+
+#endif // LIBANGLE_RENDERER_GL_EGL_WINDOWSURFACEEGL_H_