#include "gpu/command_buffer/service/gles2_cmd_clear_framebuffer.h"
#include "gpu/command_buffer/service/gl_utils.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder.h"
#include "gpu/command_buffer/service/shader_manager.h"
#include "ui/gfx/geometry/size.h"
namespace {
#define SHADER …
const char* g_vertex_shader_source = …;
const char* g_fragment_shader_source = …;
#undef SHADER
}
namespace gpu {
namespace gles2 {
ClearFramebufferResourceManager::ClearFramebufferResourceManager(
const gles2::GLES2Decoder* decoder)
: … { … }
ClearFramebufferResourceManager::~ClearFramebufferResourceManager() = default;
void ClearFramebufferResourceManager::Initialize(
const gles2::GLES2Decoder* decoder) { … }
void ClearFramebufferResourceManager::Destroy() { … }
void ClearFramebufferResourceManager::ClearFramebuffer(
const gles2::GLES2Decoder* decoder,
const gfx::Size& max_viewport_size,
GLbitfield mask,
GLfloat clear_color_red,
GLfloat clear_color_green,
GLfloat clear_color_blue,
GLfloat clear_color_alpha,
GLfloat clear_depth_value,
GLint clear_stencil_value) { … }
}
}