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

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

Issue 2639973002: Add target argument to Copy{Sub}TextureCHROMIUM entry point (Closed)
Patch Set: autogen code 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 1e30865884e393f5e5ef3c0016c19cf83426afdf..609c6e83f506e39964cc1cd9d557c2a1ad944719 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
@@ -4569,6 +4569,7 @@ error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM(
const volatile void* cmd_data) {
const volatile gles2::cmds::CopyTextureCHROMIUM& c =
*static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data);
+ GLenum target = static_cast<GLenum>(c.target);
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);
@@ -4590,7 +4591,7 @@ error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM(
"dest_type");
return error::kNoError;
}
- DoCopyTextureCHROMIUM(source_id, source_level, dest_id, dest_level,
+ DoCopyTextureCHROMIUM(target, source_id, source_level, dest_id, dest_level,
internalformat, dest_type, unpack_flip_y,
unpack_premultiply_alpha, unpack_unmultiply_alpha);
return error::kNoError;
@@ -4602,6 +4603,7 @@ error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM(
const volatile gles2::cmds::CopySubTextureCHROMIUM& c =
*static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>(
cmd_data);
+ GLenum target = static_cast<GLenum>(c.target);
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);
@@ -4627,7 +4629,7 @@ error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM(
"height < 0");
return error::kNoError;
}
- DoCopySubTextureCHROMIUM(source_id, source_level, dest_id, dest_level,
+ DoCopySubTextureCHROMIUM(target, 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