#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "gpu/command_buffer/service/gles2_cmd_copy_tex_image.h"
#include "gpu/command_buffer/service/decoder_context.h"
#include "gpu/command_buffer/service/shader_manager.h"
#include "gpu/command_buffer/service/texture_manager.h"
#include "ui/gl/gl_version_info.h"
#include <string>
namespace gpu {
namespace gles2 {
CopyTexImageResourceManager::CopyTexImageResourceManager(
const gles2::FeatureInfo* feature_info)
: … { … }
CopyTexImageResourceManager::~CopyTexImageResourceManager() = default;
void CopyTexImageResourceManager::Initialize(const DecoderContext* decoder) { … }
void CopyTexImageResourceManager::Destroy() { … }
void CopyTexImageResourceManager::DoCopyTexImage2DToLUMACompatibilityTexture(
const DecoderContext* decoder,
GLuint dest_texture,
GLenum dest_texture_target,
GLenum dest_target,
GLenum luma_format,
GLenum luma_type,
GLint level,
GLenum internal_format,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLuint source_framebuffer,
GLenum source_framebuffer_internal_format) { … }
void CopyTexImageResourceManager::DoCopyTexSubImageToLUMACompatibilityTexture(
const DecoderContext* decoder,
GLuint dest_texture,
GLenum dest_texture_target,
GLenum dest_target,
GLenum luma_format,
GLenum luma_type,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLuint source_framebuffer,
GLenum source_framebuffer_internal_format) { … }
bool CopyTexImageResourceManager::CopyTexImageRequiresBlit(
const gles2::FeatureInfo* feature_info,
GLenum dest_texture_format) { … }
}
}