#include "common/debug.h"
#include "libANGLE/renderer/gl/glx/DisplayGLX.h"
#include "libANGLE/renderer/gl/glx/FunctionsGLX.h"
#include "libANGLE/renderer/gl/glx/WindowSurfaceGLX.h"
namespace rx
{
static int IgnoreX11Errors(Display *, XErrorEvent *)
{ … }
WindowSurfaceGLX::WindowSurfaceGLX(const egl::SurfaceState &state,
const FunctionsGLX &glx,
DisplayGLX *glxDisplay,
Window window,
Display *display,
glx::FBConfig fbConfig)
: … { … }
WindowSurfaceGLX::~WindowSurfaceGLX()
{ … }
egl::Error WindowSurfaceGLX::initialize(const egl::Display *display)
{ … }
egl::Error WindowSurfaceGLX::makeCurrent(const gl::Context *context)
{ … }
egl::Error WindowSurfaceGLX::swap(const gl::Context *context)
{ … }
egl::Error WindowSurfaceGLX::postSubBuffer(const gl::Context *context,
EGLint x,
EGLint y,
EGLint width,
EGLint height)
{ … }
egl::Error WindowSurfaceGLX::querySurfacePointerANGLE(EGLint attribute, void **value)
{ … }
egl::Error WindowSurfaceGLX::bindTexImage(const gl::Context *context,
gl::Texture *texture,
EGLint buffer)
{ … }
egl::Error WindowSurfaceGLX::releaseTexImage(const gl::Context *context, EGLint buffer)
{ … }
void WindowSurfaceGLX::setSwapInterval(EGLint interval)
{ … }
EGLint WindowSurfaceGLX::getWidth() const
{ … }
EGLint WindowSurfaceGLX::getHeight() const
{ … }
EGLint WindowSurfaceGLX::isPostSubBufferSupported() const
{ … }
EGLint WindowSurfaceGLX::getSwapBehavior() const
{ … }
egl::Error WindowSurfaceGLX::checkForResize()
{ … }
glx::Drawable WindowSurfaceGLX::getDrawable() const
{ … }
bool WindowSurfaceGLX::getWindowDimensions(Window window,
unsigned int *width,
unsigned int *height) const
{ … }
egl::Error WindowSurfaceGLX::getSyncValues(EGLuint64KHR *ust, EGLuint64KHR *msc, EGLuint64KHR *sbc)
{ … }
egl::Error WindowSurfaceGLX::getMscRate(EGLint *numerator, EGLint *denominator)
{ … }
}