Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h

Issue 11412262: gpu: Defer reads from default framebuffer when needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
index 4a41a9f79e9dc32b05086c10888b872e134b0f3f..1123f86b3121bfef3570c7ac4c8c1f2f37298d8f 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
@@ -400,68 +400,6 @@ error::Error GLES2DecoderImpl::HandleCompressedTexSubImage2DImmediate(
return error::kNoError;
}
-error::Error GLES2DecoderImpl::HandleCopyTexImage2D(
- uint32 immediate_data_size, const gles2::CopyTexImage2D& c) {
- GLenum target = static_cast<GLenum>(c.target);
- GLint level = static_cast<GLint>(c.level);
- GLenum internalformat = static_cast<GLenum>(c.internalformat);
- GLint x = static_cast<GLint>(c.x);
- GLint y = static_cast<GLint>(c.y);
- GLsizei width = static_cast<GLsizei>(c.width);
- GLsizei height = static_cast<GLsizei>(c.height);
- GLint border = static_cast<GLint>(c.border);
- if (!validators_->texture_target.IsValid(target)) {
- SetGLErrorInvalidEnum("glCopyTexImage2D", target, "target");
- return error::kNoError;
- }
- if (!validators_->texture_internal_format.IsValid(internalformat)) {
- SetGLErrorInvalidEnum("glCopyTexImage2D", internalformat,
- "internalformat");
- return error::kNoError;
- }
- if (width < 0) {
- SetGLError(GL_INVALID_VALUE, "glCopyTexImage2D", "width < 0");
- return error::kNoError;
- }
- if (height < 0) {
- SetGLError(GL_INVALID_VALUE, "glCopyTexImage2D", "height < 0");
- return error::kNoError;
- }
- if (!validators_->texture_border.IsValid(border)) {
- SetGLError(
- GL_INVALID_VALUE, "glCopyTexImage2D", "border GL_INVALID_VALUE");
- return error::kNoError;
- }
- DoCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
- return error::kNoError;
-}
-
-error::Error GLES2DecoderImpl::HandleCopyTexSubImage2D(
- uint32 immediate_data_size, const gles2::CopyTexSubImage2D& c) {
- GLenum target = static_cast<GLenum>(c.target);
- GLint level = static_cast<GLint>(c.level);
- GLint xoffset = static_cast<GLint>(c.xoffset);
- GLint yoffset = static_cast<GLint>(c.yoffset);
- GLint x = static_cast<GLint>(c.x);
- GLint y = static_cast<GLint>(c.y);
- GLsizei width = static_cast<GLsizei>(c.width);
- GLsizei height = static_cast<GLsizei>(c.height);
- if (!validators_->texture_target.IsValid(target)) {
- SetGLErrorInvalidEnum("glCopyTexSubImage2D", target, "target");
- return error::kNoError;
- }
- if (width < 0) {
- SetGLError(GL_INVALID_VALUE, "glCopyTexSubImage2D", "width < 0");
- return error::kNoError;
- }
- if (height < 0) {
- SetGLError(GL_INVALID_VALUE, "glCopyTexSubImage2D", "height < 0");
- return error::kNoError;
- }
- DoCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
- return error::kNoError;
-}
-
error::Error GLES2DecoderImpl::HandleCreateProgram(
uint32 immediate_data_size, const gles2::CreateProgram& c) {
uint32 client_id = c.client_id;
@@ -2633,27 +2571,6 @@ error::Error GLES2DecoderImpl::HandleViewport(
return error::kNoError;
}
-error::Error GLES2DecoderImpl::HandleBlitFramebufferEXT(
- uint32 immediate_data_size, const gles2::BlitFramebufferEXT& c) {
- GLint srcX0 = static_cast<GLint>(c.srcX0);
- GLint srcY0 = static_cast<GLint>(c.srcY0);
- GLint srcX1 = static_cast<GLint>(c.srcX1);
- GLint srcY1 = static_cast<GLint>(c.srcY1);
- GLint dstX0 = static_cast<GLint>(c.dstX0);
- GLint dstY0 = static_cast<GLint>(c.dstY0);
- GLint dstX1 = static_cast<GLint>(c.dstX1);
- GLint dstY1 = static_cast<GLint>(c.dstY1);
- GLbitfield mask = static_cast<GLbitfield>(c.mask);
- GLenum filter = static_cast<GLenum>(c.filter);
- if (!validators_->blit_filter.IsValid(filter)) {
- SetGLErrorInvalidEnum("glBlitFramebufferEXT", filter, "filter");
- return error::kNoError;
- }
- DoBlitFramebufferEXT(
- srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
- return error::kNoError;
-}
-
error::Error GLES2DecoderImpl::HandleRenderbufferStorageMultisampleEXT(
uint32 immediate_data_size,
const gles2::RenderbufferStorageMultisampleEXT& c) {

Powered by Google App Engine
This is Rietveld 408576698