chromium/third_party/angle/src/libANGLE/Renderbuffer.cpp

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

// Renderbuffer.cpp: Implements the renderer-agnostic gl::Renderbuffer class,
// GL renderbuffer objects and related functionality.
// [OpenGL ES 2.0.24] section 4.4.3 page 108.

#include "libANGLE/Renderbuffer.h"

#include "common/utilities.h"
#include "libANGLE/Context.h"
#include "libANGLE/FramebufferAttachment.h"
#include "libANGLE/Image.h"
#include "libANGLE/Renderbuffer.h"
#include "libANGLE/Texture.h"
#include "libANGLE/formatutils.h"
#include "libANGLE/renderer/GLImplFactory.h"

namespace gl
{
namespace
{
angle::SubjectIndex kRenderbufferImplSubjectIndex =;

InitState DetermineInitState(const Context *context)
{}
}  // namespace

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

RenderbufferState::~RenderbufferState() {}

GLsizei RenderbufferState::getWidth() const
{}

GLsizei RenderbufferState::getHeight() const
{}

const Format &RenderbufferState::getFormat() const
{}

GLsizei RenderbufferState::getSamples() const
{}

MultisamplingMode RenderbufferState::getMultisamplingMode() const
{}

InitState RenderbufferState::getInitState() const
{}

void RenderbufferState::update(GLsizei width,
                               GLsizei height,
                               const Format &format,
                               GLsizei samples,
                               MultisamplingMode multisamplingMode,
                               InitState initState)
{}

void RenderbufferState::setProtectedContent(bool hasProtectedContent)
{}

// Renderbuffer implementation.
Renderbuffer::Renderbuffer(rx::GLImplFactory *implFactory, RenderbufferID id)
    :{}

void Renderbuffer::onDestroy(const Context *context)
{}

Renderbuffer::~Renderbuffer() {}

angle::Result Renderbuffer::setLabel(const Context *context, const std::string &label)
{}

const std::string &Renderbuffer::getLabel() const
{}

angle::Result Renderbuffer::setStorage(const Context *context,
                                       GLenum internalformat,
                                       GLsizei width,
                                       GLsizei height)
{}

angle::Result Renderbuffer::setStorageMultisample(const Context *context,
                                                  GLsizei samplesIn,
                                                  GLenum internalformat,
                                                  GLsizei width,
                                                  GLsizei height,
                                                  MultisamplingMode mode)
{}

angle::Result Renderbuffer::setStorageEGLImageTarget(const Context *context, egl::Image *image)
{}

angle::Result Renderbuffer::copyRenderbufferSubData(Context *context,
                                                    const gl::Renderbuffer *srcBuffer,
                                                    GLint srcLevel,
                                                    GLint srcX,
                                                    GLint srcY,
                                                    GLint srcZ,
                                                    GLint dstLevel,
                                                    GLint dstX,
                                                    GLint dstY,
                                                    GLint dstZ,
                                                    GLsizei srcWidth,
                                                    GLsizei srcHeight,
                                                    GLsizei srcDepth)
{}

angle::Result Renderbuffer::copyTextureSubData(Context *context,
                                               const gl::Texture *srcTexture,
                                               GLint srcLevel,
                                               GLint srcX,
                                               GLint srcY,
                                               GLint srcZ,
                                               GLint dstLevel,
                                               GLint dstX,
                                               GLint dstY,
                                               GLint dstZ,
                                               GLsizei srcWidth,
                                               GLsizei srcHeight,
                                               GLsizei srcDepth)
{}

rx::RenderbufferImpl *Renderbuffer::getImplementation() const
{}

GLsizei Renderbuffer::getWidth() const
{}

GLsizei Renderbuffer::getHeight() const
{}

const Format &Renderbuffer::getFormat() const
{}

GLsizei Renderbuffer::getSamples() const
{}

MultisamplingMode Renderbuffer::getMultisamplingMode() const
{}

GLuint Renderbuffer::getRedSize() const
{}

GLuint Renderbuffer::getGreenSize() const
{}

GLuint Renderbuffer::getBlueSize() const
{}

GLuint Renderbuffer::getAlphaSize() const
{}

GLuint Renderbuffer::getDepthSize() const
{}

GLuint Renderbuffer::getStencilSize() const
{}

const RenderbufferState &Renderbuffer::getState() const
{}

GLint Renderbuffer::getMemorySize() const
{}

void Renderbuffer::onAttach(const Context *context, rx::UniqueSerial framebufferSerial)
{}

void Renderbuffer::onDetach(const Context *context, rx::UniqueSerial framebufferSerial)
{}

GLuint Renderbuffer::getId() const
{}

Extents Renderbuffer::getAttachmentSize(const gl::ImageIndex & /*imageIndex*/) const
{}

Format Renderbuffer::getAttachmentFormat(GLenum /*binding*/,
                                         const ImageIndex & /*imageIndex*/) const
{}
GLsizei Renderbuffer::getAttachmentSamples(const ImageIndex & /*imageIndex*/) const
{}

bool Renderbuffer::isRenderable(const Context *context,
                                GLenum binding,
                                const ImageIndex &imageIndex) const
{}

InitState Renderbuffer::initState(GLenum /*binding*/, const gl::ImageIndex & /*imageIndex*/) const
{}

void Renderbuffer::setInitState(GLenum /*binding*/,
                                const gl::ImageIndex & /*imageIndex*/,
                                InitState initState)
{}

rx::FramebufferAttachmentObjectImpl *Renderbuffer::getAttachmentImpl() const
{}

GLenum Renderbuffer::getImplementationColorReadFormat(const Context *context) const
{}

GLenum Renderbuffer::getImplementationColorReadType(const Context *context) const
{}

angle::Result Renderbuffer::getRenderbufferImage(const Context *context,
                                                 const PixelPackState &packState,
                                                 Buffer *packBuffer,
                                                 GLenum format,
                                                 GLenum type,
                                                 void *pixels) const
{}

void Renderbuffer::onSubjectStateChange(angle::SubjectIndex index, angle::SubjectMessage message)
{}
}  // namespace gl