#ifndef LIBANGLE_RENDERER_RENDERBUFFERIMPL_H_
#define LIBANGLE_RENDERER_RENDERBUFFERIMPL_H_
#include "angle_gl.h"
#include "common/angleutils.h"
#include "libANGLE/Error.h"
#include "libANGLE/angletypes.h"
#include "libANGLE/renderer/FramebufferAttachmentObjectImpl.h"
namespace gl
{
struct PixelPackState;
class RenderbufferState;
}
namespace egl
{
class Image;
}
namespace rx
{
class RenderbufferImpl : public FramebufferAttachmentObjectImpl
{ … };
inline angle::Result RenderbufferImpl::copyRenderbufferSubData(const gl::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)
{ … }
inline angle::Result RenderbufferImpl::copyTextureSubData(const gl::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)
{ … }
inline GLint RenderbufferImpl::getMemorySize() const
{ … }
inline GLenum RenderbufferImpl::getColorReadFormat(const gl::Context *context)
{ … }
inline GLenum RenderbufferImpl::getColorReadType(const gl::Context *context)
{ … }
inline angle::Result RenderbufferImpl::getRenderbufferImage(const gl::Context *context,
const gl::PixelPackState &packState,
gl::Buffer *packBuffer,
GLenum format,
GLenum type,
void *pixels)
{ … }
}
#endif