chromium/third_party/angle/third_party/glmark2/src/src/gl-state-egl.cpp

//
// Copyright © 2012 Linaro Limited
//
// This file is part of the glmark2 OpenGL (ES) 2.0 benchmark.
//
// glmark2 is free software: you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the Free Software
// Foundation, either version 3 of the License, or (at your option) any later
// version.
//
// glmark2 is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// glmark2.  If not, see <http://www.gnu.org/licenses/>.
//
// Authors:
//  Jesse Barker
//
#include "gl-state-egl.h"
#include "log.h"
#include "options.h"
#include "gl-headers.h"
#include "limits.h"
#include "gl-headers.h"
#include <iomanip>
#include <sstream>
#include <cstring>

vector;
string;

GLADapiproc load_egl_func(void *userdata, const char *name)
{}

/****************************
 * EGLConfig public methods *
 ****************************/

EglConfig::EglConfig(EGLDisplay dpy, EGLConfig config) :{}

void
EglConfig::print_header()
{}

void
EglConfig::print() const
{}

/*****************************
 * GLStateEGL public methods *
 ****************************/

GLStateEGL::~GLStateEGL()
{}

bool
GLStateEGL::init_display(void* native_display, GLVisualConfig& visual_config)
{}

bool
GLStateEGL::init_surface(void* native_window)
{}

bool
GLStateEGL::init_gl_extensions()
{}

bool
GLStateEGL::valid()
{}

bool
GLStateEGL::reset()
{}

void
GLStateEGL::swap()
{}

bool
GLStateEGL::gotNativeConfig(intptr_t& vid)
{}

void
GLStateEGL::getVisualConfig(GLVisualConfig& vc)
{}

/******************************
 * GLStateEGL private methods *
 *****************************/

#ifdef GLMARK2_USE_X11
#define GLMARK2_NATIVE_EGL_DISPLAY_ENUM
#elif  GLMARK2_USE_WAYLAND
#define GLMARK2_NATIVE_EGL_DISPLAY_ENUM
#elif  GLMARK2_USE_DRM
#define GLMARK2_NATIVE_EGL_DISPLAY_ENUM
#elif  GLMARK2_USE_MIR
#define GLMARK2_NATIVE_EGL_DISPLAY_ENUM
#else
// Platforms not in the above platform enums fall back to eglGetDisplay.
#define GLMARK2_NATIVE_EGL_DISPLAY_ENUM
#endif

bool
GLStateEGL::gotValidDisplay()
{}

void
GLStateEGL::get_glvisualconfig(EGLConfig config, GLVisualConfig& visual_config)
{}

EGLConfig
GLStateEGL::select_best_config(std::vector<EGLConfig>& configs)
{}

bool
GLStateEGL::gotValidConfig()
{}

bool
GLStateEGL::gotValidSurface()
{}

bool
GLStateEGL::gotValidContext()
{}

GLADapiproc
GLStateEGL::load_proc(void *userptr, const char* name)
{}