chromium/third_party/angle/src/libANGLE/renderer/gl/glx/FunctionsGLX.cpp

//
// Copyright 2015 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.
//

// FunctionsGLX.cpp: Implements the FunctionsGLX class.

#define ANGLE_SKIP_GLX_DEFINES
#include "libANGLE/renderer/gl/glx/FunctionsGLX.h"
#undef ANGLE_SKIP_GLX_DEFINES

// We can only include glx.h in files which do not include ANGLE's GLES
// headers, to avoid doubly-defined GLenum macros, typedefs, etc.
#include <GL/glx.h>

#include <dlfcn.h>
#include <algorithm>

#include "common/string_utils.h"
#include "libANGLE/renderer/gl/glx/functionsglx_typedefs.h"

namespace rx
{

void *FunctionsGLX::sLibHandle =;

template <typename T>
static bool GetProc(PFNGETPROCPROC getProc, T *member, const char *name)
{}

struct FunctionsGLX::GLXFunctionTable
{};

FunctionsGLX::FunctionsGLX()
    :{}

FunctionsGLX::~FunctionsGLX()
{}

bool FunctionsGLX::initialize(Display *xDisplay, int screen, std::string *errorString)
{}

void FunctionsGLX::terminate() {}

bool FunctionsGLX::hasExtension(const char *extension) const
{}

Display *FunctionsGLX::getDisplay() const
{}

int FunctionsGLX::getScreen() const
{}

// GLX functions

// GLX 1.0
glx::Context FunctionsGLX::createContext(XVisualInfo *visual, glx::Context share, bool direct) const
{}
void FunctionsGLX::destroyContext(glx::Context context) const
{}
Bool FunctionsGLX::makeCurrent(glx::Drawable drawable, glx::Context context) const
{}
void FunctionsGLX::swapBuffers(glx::Drawable drawable) const
{}
Bool FunctionsGLX::queryExtension(int *errorBase, int *event) const
{}
Bool FunctionsGLX::queryVersion(int *major, int *minor) const
{}
glx::Context FunctionsGLX::getCurrentContext() const
{}
glx::Drawable FunctionsGLX::getCurrentDrawable() const
{}
void FunctionsGLX::waitX() const
{}
void FunctionsGLX::waitGL() const
{}

// GLX 1.1
const char *FunctionsGLX::getClientString(int name) const
{}

const char *FunctionsGLX::queryExtensionsString() const
{}

// GLX 1.4
glx::FBConfig *FunctionsGLX::getFBConfigs(int *nElements) const
{}
glx::FBConfig *FunctionsGLX::chooseFBConfig(const int *attribList, int *nElements) const
{}
int FunctionsGLX::getFBConfigAttrib(glx::FBConfig config, int attribute, int *value) const
{}
XVisualInfo *FunctionsGLX::getVisualFromFBConfig(glx::FBConfig config) const
{}
GLXWindow FunctionsGLX::createWindow(glx::FBConfig config,
                                     Window window,
                                     const int *attribList) const
{}
void FunctionsGLX::destroyWindow(glx::Window window) const
{}
glx::Pbuffer FunctionsGLX::createPbuffer(glx::FBConfig config, const int *attribList) const
{}
void FunctionsGLX::destroyPbuffer(glx::Pbuffer pbuffer) const
{}
void FunctionsGLX::queryDrawable(glx::Drawable drawable, int attribute, unsigned int *value) const
{}

glx::Pixmap FunctionsGLX::createPixmap(glx::FBConfig config,
                                       Pixmap pixmap,
                                       const int *attribList) const
{}
void FunctionsGLX::destroyPixmap(Pixmap pixmap) const
{}

// GLX_ARB_create_context
glx::Context FunctionsGLX::createContextAttribsARB(glx::FBConfig config,
                                                   glx::Context shareContext,
                                                   Bool direct,
                                                   const int *attribList) const
{}

void FunctionsGLX::swapIntervalEXT(glx::Drawable drawable, int intervals) const
{}

int FunctionsGLX::swapIntervalMESA(int intervals) const
{}

int FunctionsGLX::swapIntervalSGI(int intervals) const
{}

bool FunctionsGLX::getSyncValuesOML(glx::Drawable drawable,
                                    int64_t *ust,
                                    int64_t *msc,
                                    int64_t *sbc) const
{}

bool FunctionsGLX::getMscRateOML(glx::Drawable drawable,
                                 int32_t *numerator,
                                 int32_t *denominator) const
{}

void FunctionsGLX::bindTexImageEXT(glx::Drawable drawable, int buffer, const int *attribList) const
{}
void FunctionsGLX::releaseTexImageEXT(glx::Drawable drawable, int buffer) const
{}
}  // namespace rx