chromium/third_party/angle/util/EGLWindow.cpp

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

#include "util/EGLWindow.h"

#include <cassert>
#include <iostream>
#include <vector>

#include <string.h>

#include "common/hash_containers.h"
#include "common/system_utils.h"
#include "platform/Feature.h"
#include "platform/PlatformMethods.h"
#include "util/OSWindow.h"

namespace
{
constexpr EGLint kDefaultSwapInterval =;
}  // anonymous namespace

// ConfigParameters implementation.
ConfigParameters::ConfigParameters()
    :{}

ConfigParameters::~ConfigParameters() = default;

void ConfigParameters::reset()
{}

// GLWindowBase implementation.
GLWindowBase::GLWindowBase(EGLenum clientType,
                           GLint glesMajorVersion,
                           EGLint glesMinorVersion,
                           EGLint profileMask)
    :{}

GLWindowBase::~GLWindowBase() = default;

// EGLWindow implementation.
EGLWindow::EGLWindow(EGLenum clientType,
                     EGLint glesMajorVersion,
                     EGLint glesMinorVersion,
                     EGLint profileMask)
    :{}

EGLWindow::~EGLWindow()
{}

void EGLWindow::swap()
{}

EGLConfig EGLWindow::getConfig() const
{}

EGLDisplay EGLWindow::getDisplay() const
{}

EGLSurface EGLWindow::getSurface() const
{}

EGLContext EGLWindow::getContext() const
{}

bool EGLWindow::isContextVersion(EGLint glesMajorVersion, EGLint glesMinorVersion) const
{}

GLWindowResult EGLWindow::initializeGLWithResult(OSWindow *osWindow,
                                                 angle::Library *glWindowingLibrary,
                                                 angle::GLESDriverType driverType,
                                                 const EGLPlatformParameters &platformParams,
                                                 const ConfigParameters &configParams)
{}

bool EGLWindow::initializeGL(OSWindow *osWindow,
                             angle::Library *glWindowingLibrary,
                             angle::GLESDriverType driverType,
                             const EGLPlatformParameters &platformParams,
                             const ConfigParameters &configParams)
{}

bool EGLWindow::initializeDisplay(OSWindow *osWindow,
                                  angle::Library *glWindowingLibrary,
                                  angle::GLESDriverType driverType,
                                  const EGLPlatformParameters &params)
{}

GLWindowResult EGLWindow::initializeSurface(OSWindow *osWindow,
                                            angle::Library *glWindowingLibrary,
                                            const ConfigParameters &params)
{}

GLWindowContext EGLWindow::getCurrentContextGeneric()
{}

GLWindowContext EGLWindow::createContextGeneric(GLWindowContext share)
{}

EGLContext EGLWindow::createContext(EGLContext share, EGLint *extraAttributes)
{}

bool EGLWindow::initializeContext()
{}

void EGLWindow::destroyGL()
{}

void EGLWindow::destroySurface()
{}

void EGLWindow::destroyContext()
{}

bool EGLWindow::isGLInitialized() const
{}

// Find an EGLConfig that is an exact match for the specified attributes. EGL_FALSE is returned if
// the EGLConfig is found.  This indicates that the EGLConfig is not supported.  Surface type is
// special-cased as it's possible for a config to return support for both EGL_WINDOW_BIT and
// EGL_PBUFFER_BIT even though only one of them is requested.
EGLBoolean EGLWindow::FindEGLConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *config)
{}

bool EGLWindow::makeCurrentGeneric(GLWindowContext context)
{}

bool EGLWindow::makeCurrent()
{}

EGLWindow::Image EGLWindow::createImage(GLWindowContext context,
                                        Enum target,
                                        ClientBuffer buffer,
                                        const Attrib *attrib_list)
{}

EGLWindow::Image EGLWindow::createImageKHR(GLWindowContext context,
                                           Enum target,
                                           ClientBuffer buffer,
                                           const AttribKHR *attrib_list)
{}

EGLBoolean EGLWindow::destroyImage(Image image)
{}

EGLBoolean EGLWindow::destroyImageKHR(Image image)
{}

EGLWindow::Sync EGLWindow::createSync(EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list)
{}

EGLWindow::Sync EGLWindow::createSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list)
{}

EGLBoolean EGLWindow::destroySync(EGLDisplay dpy, Sync sync)
{}

EGLBoolean EGLWindow::destroySyncKHR(EGLDisplay dpy, Sync sync)
{}

EGLint EGLWindow::clientWaitSync(EGLDisplay dpy, Sync sync, EGLint flags, EGLTimeKHR timeout)
{}

EGLint EGLWindow::clientWaitSyncKHR(EGLDisplay dpy, Sync sync, EGLint flags, EGLTimeKHR timeout)
{}

EGLint EGLWindow::getEGLError()
{}

EGLWindow::Display EGLWindow::getCurrentDisplay()
{}

GLWindowBase::Surface EGLWindow::createPbufferSurface(const EGLint *attrib_list)
{}

EGLBoolean EGLWindow::destroySurface(Surface surface)
{}

EGLBoolean EGLWindow::bindTexImage(EGLSurface surface, EGLint buffer)
{}

EGLBoolean EGLWindow::releaseTexImage(EGLSurface surface, EGLint buffer)
{}

bool EGLWindow::makeCurrent(EGLSurface draw, EGLSurface read, EGLContext context)
{}

bool EGLWindow::makeCurrent(EGLContext context)
{}

bool EGLWindow::setSwapInterval(EGLint swapInterval)
{}

bool EGLWindow::hasError() const
{}

angle::GenericProc EGLWindow::getProcAddress(const char *name)
{}

// static
void GLWindowBase::Delete(GLWindowBase **window)
{}

// static
EGLWindow *EGLWindow::New(EGLenum clientType,
                          EGLint glesMajorVersion,
                          EGLint glesMinorVersion,
                          EGLint profileMask)
{}

// static
void EGLWindow::Delete(EGLWindow **window)
{}

void EGLWindow::queryFeatures()
{}

bool EGLWindow::isFeatureEnabled(angle::Feature feature)
{}