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

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

Issue 2388653002: gpu: Add CHROMIUM_texture_from_image spec and fence support.
Patch Set: rebase Created 4 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/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 ff02094ec043ee9f7143479193f07fa12aab3286..45a2e65d969024ea82342aee343c5274123ab71b 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -13021,30 +13021,34 @@ struct BindTexImage2DCHROMIUM {
void SetHeader() { header.SetCmd<ValueType>(); }
- void Init(GLenum _target, GLint _imageId) {
+ void Init(GLenum _target, GLint _imageId, GLint _fenceId) {
SetHeader();
target = _target;
imageId = _imageId;
+ fenceId = _fenceId;
}
- void* Set(void* cmd, GLenum _target, GLint _imageId) {
- static_cast<ValueType*>(cmd)->Init(_target, _imageId);
+ void* Set(void* cmd, GLenum _target, GLint _imageId, GLint _fenceId) {
+ static_cast<ValueType*>(cmd)->Init(_target, _imageId, _fenceId);
return NextCmdAddress<ValueType>(cmd);
}
gpu::CommandHeader header;
uint32_t target;
int32_t imageId;
+ int32_t fenceId;
};
-static_assert(sizeof(BindTexImage2DCHROMIUM) == 12,
- "size of BindTexImage2DCHROMIUM should be 12");
+static_assert(sizeof(BindTexImage2DCHROMIUM) == 16,
+ "size of BindTexImage2DCHROMIUM should be 16");
static_assert(offsetof(BindTexImage2DCHROMIUM, header) == 0,
"offset of BindTexImage2DCHROMIUM header should be 0");
static_assert(offsetof(BindTexImage2DCHROMIUM, target) == 4,
"offset of BindTexImage2DCHROMIUM target should be 4");
static_assert(offsetof(BindTexImage2DCHROMIUM, imageId) == 8,
"offset of BindTexImage2DCHROMIUM imageId should be 8");
+static_assert(offsetof(BindTexImage2DCHROMIUM, fenceId) == 12,
+ "offset of BindTexImage2DCHROMIUM fenceId should be 12");
struct ReleaseTexImage2DCHROMIUM {
typedef ReleaseTexImage2DCHROMIUM 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