#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)
{ … }
}
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::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 & ) const
{ … }
Format Renderbuffer::getAttachmentFormat(GLenum ,
const ImageIndex & ) const
{ … }
GLsizei Renderbuffer::getAttachmentSamples(const ImageIndex & ) const
{ … }
bool Renderbuffer::isRenderable(const Context *context,
GLenum binding,
const ImageIndex &imageIndex) const
{ … }
InitState Renderbuffer::initState(GLenum , const gl::ImageIndex & ) const
{ … }
void Renderbuffer::setInitState(GLenum ,
const gl::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)
{ … }
}