summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/common/gles2_cmd_format_autogen.h
diff options
context:
space:
mode:
authorjbauman <jbauman@chromium.org>2015-12-02 15:15:40 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-02 23:18:18 +0000
commit8046f1cbb18126cd9ea1a405c93e545f2c377978 (patch)
treed7882c1c67e7b472945270b9942931db114ffc8f /gpu/command_buffer/common/gles2_cmd_format_autogen.h
parent139d1058893d281aa122b41910c9dc243dfb94d7 (diff)
downloadchromium_src-8046f1cbb18126cd9ea1a405c93e545f2c377978.zip
chromium_src-8046f1cbb18126cd9ea1a405c93e545f2c377978.tar.gz
chromium_src-8046f1cbb18126cd9ea1a405c93e545f2c377978.tar.bz2
Add alpha argument to glResizeCHROMIUM
This lets the compositor specify whether the backbuffer will need to be blended with the contents behind it, and if not it can use a method that uses less power. BUG=561185 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1474873003 Cr-Commit-Position: refs/heads/master@{#362817}
Diffstat (limited to 'gpu/command_buffer/common/gles2_cmd_format_autogen.h')
-rw-r--r--gpu/command_buffer/common/gles2_cmd_format_autogen.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_format_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
index 95bf3a8..b26cea0 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;