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

Unified Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.h

Issue 13613006: Add a new parameter dest_type to the GL_CHROMIUM_copy_texture extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase the patch and solve the merge conflict issue Created 7 years, 8 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/common/gles2_cmd_format_autogen.h
diff --git a/gpu/command_buffer/common/gles2_cmd_format_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
index 3557348325033f352a663d6f5d7fe3b7c7a84892..2e2b736bfa61bebdcd881bcc54560e496dcb98ca 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -9890,20 +9890,23 @@ struct CopyTextureCHROMIUM {
void Init(
GLenum _target, GLenum _source_id, GLenum _dest_id, GLint _level,
- GLint _internalformat) {
+ GLint _internalformat, GLenum _dest_type) {
SetHeader();
target = _target;
source_id = _source_id;
dest_id = _dest_id;
level = _level;
internalformat = _internalformat;
+ dest_type = _dest_type;
}
void* Set(
void* cmd, GLenum _target, GLenum _source_id, GLenum _dest_id,
- GLint _level, GLint _internalformat) {
+ GLint _level, GLint _internalformat, GLenum _dest_type) {
static_cast<ValueType*>(
- cmd)->Init(_target, _source_id, _dest_id, _level, _internalformat);
+ cmd)->Init(
+ _target, _source_id, _dest_id, _level, _internalformat,
+ _dest_type);
return NextCmdAddress<ValueType>(cmd);
}
@@ -9913,10 +9916,11 @@ struct CopyTextureCHROMIUM {
uint32 dest_id;
int32 level;
int32 internalformat;
+ uint32 dest_type;
};
-COMPILE_ASSERT(sizeof(CopyTextureCHROMIUM) == 24,
- Sizeof_CopyTextureCHROMIUM_is_not_24);
+COMPILE_ASSERT(sizeof(CopyTextureCHROMIUM) == 28,
+ Sizeof_CopyTextureCHROMIUM_is_not_28);
COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, header) == 0,
OffsetOf_CopyTextureCHROMIUM_header_not_0);
COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, target) == 4,
@@ -9929,6 +9933,8 @@ COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, level) == 16,
OffsetOf_CopyTextureCHROMIUM_level_not_16);
COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, internalformat) == 20,
OffsetOf_CopyTextureCHROMIUM_internalformat_not_20);
+COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, dest_type) == 24,
+ OffsetOf_CopyTextureCHROMIUM_dest_type_not_24);
struct DrawArraysInstancedANGLE {
typedef DrawArraysInstancedANGLE ValueType;
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/common/gles2_cmd_format_test_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698