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

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: Fix the compilation issue for Mac and Win 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..fc84e6a0db78d52f7b500d72617a46090811eee0 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -9890,20 +9890,22 @@ struct CopyTextureCHROMIUM {
void Init(
GLenum _target, GLenum _source_id, GLenum _dest_id, GLint _level,
- GLint _internalformat) {
+ GLint _internalformat, GLint _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, GLint _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 +9915,11 @@ struct CopyTextureCHROMIUM {
uint32 dest_id;
int32 level;
int32 internalformat;
+ int32 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 +9932,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;

Powered by Google App Engine
This is Rietveld 408576698