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

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

// PixmapSurfaceGLX.cpp: GLX implementation of egl::Surface for Pixmaps

#include "common/debug.h"
#include "libANGLE/Display.h"
#include "libANGLE/Surface.h"

#include "libANGLE/renderer/gl/glx/DisplayGLX.h"

#include "libANGLE/renderer/gl/glx/FunctionsGLX.h"
#include "libANGLE/renderer/gl/glx/PixmapSurfaceGLX.h"
#include "libANGLE/renderer/gl/glx/glx_utils.h"

#include <iostream>

namespace rx
{

namespace
{

int EGLTextureFormatToGLXTextureFormat(EGLint textureFormat)
{}

int EGLTextureTargetToGLXTextureTarget(EGLint textureTarget)
{}

int EGLBufferToGLXBuffer(EGLint buffer)
{}

}  // namespace

PixmapSurfaceGLX::PixmapSurfaceGLX(const egl::SurfaceState &state,
                                   Pixmap pixmap,
                                   Display *display,
                                   const FunctionsGLX &glx,
                                   glx::FBConfig fbConfig)
    :{}

PixmapSurfaceGLX::~PixmapSurfaceGLX()
{}

egl::Error PixmapSurfaceGLX::initialize(const egl::Display *display)
{}

egl::Error PixmapSurfaceGLX::makeCurrent(const gl::Context *context)
{}

egl::Error PixmapSurfaceGLX::swap(const gl::Context *context)
{}

egl::Error PixmapSurfaceGLX::postSubBuffer(const gl::Context *context,
                                           EGLint x,
                                           EGLint y,
                                           EGLint width,
                                           EGLint height)
{}

egl::Error PixmapSurfaceGLX::querySurfacePointerANGLE(EGLint attribute, void **value)
{}

egl::Error PixmapSurfaceGLX::bindTexImage(const gl::Context *context,
                                          gl::Texture *texture,
                                          EGLint buffer)
{}

egl::Error PixmapSurfaceGLX::releaseTexImage(const gl::Context *context, EGLint buffer)
{}

void PixmapSurfaceGLX::setSwapInterval(EGLint interval) {}

EGLint PixmapSurfaceGLX::getWidth() const
{}

EGLint PixmapSurfaceGLX::getHeight() const
{}

EGLint PixmapSurfaceGLX::isPostSubBufferSupported() const
{}

EGLint PixmapSurfaceGLX::getSwapBehavior() const
{}

egl::Error PixmapSurfaceGLX::checkForResize()
{}

glx::Drawable PixmapSurfaceGLX::getDrawable() const
{}

}  // namespace rx