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

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

Issue 2610853005: Modify Copy{Sub}TextureCHROMIUM entry point to add level argument (Closed)
Patch Set: fix chromeos Created 3 years, 11 months 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 2d8c7a42ae5c3a194eab2517621c0ccfd2ee419b..1e30865884e393f5e5ef3c0016c19cf83426afdf 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
@@ -4570,7 +4570,9 @@ error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM(
const volatile gles2::cmds::CopyTextureCHROMIUM& c =
*static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data);
GLenum source_id = static_cast<GLenum>(c.source_id);
+ GLint source_level = static_cast<GLint>(c.source_level);
GLenum dest_id = static_cast<GLenum>(c.dest_id);
+ GLint dest_level = static_cast<GLint>(c.dest_level);
GLint internalformat = static_cast<GLint>(c.internalformat);
GLenum dest_type = static_cast<GLenum>(c.dest_type);
GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y);
@@ -4588,9 +4590,9 @@ error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM(
"dest_type");
return error::kNoError;
}
- DoCopyTextureCHROMIUM(source_id, dest_id, internalformat, dest_type,
- unpack_flip_y, unpack_premultiply_alpha,
- unpack_unmultiply_alpha);
+ DoCopyTextureCHROMIUM(source_id, source_level, dest_id, dest_level,
+ internalformat, dest_type, unpack_flip_y,
+ unpack_premultiply_alpha, unpack_unmultiply_alpha);
return error::kNoError;
}
@@ -4601,7 +4603,9 @@ error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM(
*static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>(
cmd_data);
GLenum source_id = static_cast<GLenum>(c.source_id);
+ GLint source_level = static_cast<GLint>(c.source_level);
GLenum dest_id = static_cast<GLenum>(c.dest_id);
+ GLint dest_level = static_cast<GLint>(c.dest_level);
GLint xoffset = static_cast<GLint>(c.xoffset);
GLint yoffset = static_cast<GLint>(c.yoffset);
GLint x = static_cast<GLint>(c.x);
@@ -4623,9 +4627,9 @@ error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM(
"height < 0");
return error::kNoError;
}
- DoCopySubTextureCHROMIUM(source_id, dest_id, xoffset, yoffset, x, y, width,
- height, unpack_flip_y, unpack_premultiply_alpha,
- unpack_unmultiply_alpha);
+ DoCopySubTextureCHROMIUM(source_id, source_level, dest_id, dest_level,
+ xoffset, yoffset, x, y, width, height, unpack_flip_y,
+ unpack_premultiply_alpha, unpack_unmultiply_alpha);
return error::kNoError;
}

Powered by Google App Engine
This is Rietveld 408576698