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 // PbufferSurfaceEGL.h: EGL implementation of egl::Surface for pbuffers 8 9 #ifndef LIBANGLE_RENDERER_GL_EGL_PBUFFERSURFACEEGL_H_ 10 #define LIBANGLE_RENDERER_GL_EGL_PBUFFERSURFACEEGL_H_ 11 12 #include <EGL/egl.h> 13 #include <vector> 14 15 #include "libANGLE/renderer/gl/egl/SurfaceEGL.h" 16 17 namespace rx 18 { 19 20 class PbufferSurfaceEGL : public SurfaceEGL 21 { 22 public: 23 PbufferSurfaceEGL(const egl::SurfaceState &state, const FunctionsEGL *egl, EGLConfig config); 24 ~PbufferSurfaceEGL() override; 25 26 egl::Error initialize(const egl::Display *display) override; 27 }; 28 29 } // namespace rx 30 31 #endif // LIBANGLE_RENDERER_GL_EGL_PBUFFERSURFACEEGL_H_ 32