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

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

Issue 1474873003: Add alpha argument to glResizeCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 01610ae592a525d26cc7a5314142818f2dc1a33b..b775636cd489e868338877e2884bd5e888752e59 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -11899,15 +11899,23 @@ struct ResizeCHROMIUM {
void SetHeader() { header.SetCmd<ValueType>(); }
- void Init(GLuint _width, GLuint _height, GLfloat _scale_factor) {
+ void Init(GLuint _width,
+ GLuint _height,
+ GLfloat _scale_factor,
+ GLboolean _alpha) {
SetHeader();
width = _width;
height = _height;
scale_factor = _scale_factor;
+ alpha = _alpha;
}
- void* Set(void* cmd, GLuint _width, GLuint _height, GLfloat _scale_factor) {
- static_cast<ValueType*>(cmd)->Init(_width, _height, _scale_factor);
+ void* Set(void* cmd,
+ GLuint _width,
+ GLuint _height,
+ GLfloat _scale_factor,
+ GLboolean _alpha) {
+ static_cast<ValueType*>(cmd)->Init(_width, _height, _scale_factor, _alpha);
return NextCmdAddress<ValueType>(cmd);
}
@@ -11915,10 +11923,11 @@ struct ResizeCHROMIUM {
uint32_t width;
uint32_t height;
float scale_factor;
+ uint32_t alpha;
};
-static_assert(sizeof(ResizeCHROMIUM) == 16,
- "size of ResizeCHROMIUM should be 16");
+static_assert(sizeof(ResizeCHROMIUM) == 20,
+ "size of ResizeCHROMIUM should be 20");
static_assert(offsetof(ResizeCHROMIUM, header) == 0,
"offset of ResizeCHROMIUM header should be 0");
static_assert(offsetof(ResizeCHROMIUM, width) == 4,
@@ -11927,6 +11936,8 @@ static_assert(offsetof(ResizeCHROMIUM, height) == 8,
"offset of ResizeCHROMIUM height should be 8");
static_assert(offsetof(ResizeCHROMIUM, scale_factor) == 12,
"offset of ResizeCHROMIUM scale_factor should be 12");
+static_assert(offsetof(ResizeCHROMIUM, alpha) == 16,
+ "offset of ResizeCHROMIUM alpha should be 16");
struct GetRequestableExtensionsCHROMIUM {
typedef GetRequestableExtensionsCHROMIUM 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