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 // SurfaceGLX.h: common interface for GLX surfaces 8 9 #ifndef LIBANGLE_RENDERER_GL_GLX_SURFACEGLX_H_ 10 #define LIBANGLE_RENDERER_GL_GLX_SURFACEGLX_H_ 11 12 #include "libANGLE/renderer/gl/SurfaceGL.h" 13 #include "libANGLE/renderer/gl/glx/platform_glx.h" 14 15 namespace rx 16 { 17 18 class SurfaceGLX : public SurfaceGL 19 { 20 public: SurfaceGLX(const egl::SurfaceState & state)21 SurfaceGLX(const egl::SurfaceState &state) : SurfaceGL(state) {} 22 23 virtual egl::Error checkForResize() = 0; 24 virtual glx::Drawable getDrawable() const = 0; 25 }; 26 } // namespace rx 27 28 #endif // LIBANGLE_RENDERER_GL_GLX_SURFACEGLX_H_ 29