#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 = …;
}
ConfigParameters::ConfigParameters()
: … { … }
ConfigParameters::~ConfigParameters() = default;
void ConfigParameters::reset()
{ … }
GLWindowBase::GLWindowBase(EGLenum clientType,
GLint glesMajorVersion,
EGLint glesMinorVersion,
EGLint profileMask)
: … { … }
GLWindowBase::~GLWindowBase() = default;
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 ¶ms)
{ … }
GLWindowResult EGLWindow::initializeSurface(OSWindow *osWindow,
angle::Library *glWindowingLibrary,
const ConfigParameters ¶ms)
{ … }
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
{ … }
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)
{ … }
void GLWindowBase::Delete(GLWindowBase **window)
{ … }
EGLWindow *EGLWindow::New(EGLenum clientType,
EGLint glesMajorVersion,
EGLint glesMinorVersion,
EGLint profileMask)
{ … }
void EGLWindow::Delete(EGLWindow **window)
{ … }
void EGLWindow::queryFeatures()
{ … }
bool EGLWindow::isFeatureEnabled(angle::Feature feature)
{ … }