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

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

Issue 1513283002: Add support to send optimal format as part of ScheduleOverlayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update cmd_buffer_functions 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 a9aeef0bc65728c5ca87c944661700b1ae955c17..615ecf793ccd0c07f72bbcc834af232d2cb3843e 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -13769,6 +13769,7 @@ struct ScheduleOverlayPlaneCHROMIUM {
void Init(GLint _plane_z_order,
GLenum _plane_transform,
+ GLuint _storage_format,
GLuint _overlay_texture_id,
GLint _bounds_x,
GLint _bounds_y,
@@ -13777,10 +13778,12 @@ struct ScheduleOverlayPlaneCHROMIUM {
GLfloat _uv_x,
GLfloat _uv_y,
GLfloat _uv_width,
- GLfloat _uv_height) {
+ GLfloat _uv_height,
+ GLboolean _handle_scaling) {
SetHeader();
plane_z_order = _plane_z_order;
plane_transform = _plane_transform;
+ storage_format = _storage_format;
overlay_texture_id = _overlay_texture_id;
bounds_x = _bounds_x;
bounds_y = _bounds_y;
@@ -13790,11 +13793,13 @@ struct ScheduleOverlayPlaneCHROMIUM {
uv_y = _uv_y;
uv_width = _uv_width;
uv_height = _uv_height;
+ handle_scaling = _handle_scaling;
}
void* Set(void* cmd,
GLint _plane_z_order,
GLenum _plane_transform,
+ GLuint _storage_format,
GLuint _overlay_texture_id,
GLint _bounds_x,
GLint _bounds_y,
@@ -13803,17 +13808,19 @@ struct ScheduleOverlayPlaneCHROMIUM {
GLfloat _uv_x,
GLfloat _uv_y,
GLfloat _uv_width,
- GLfloat _uv_height) {
- static_cast<ValueType*>(cmd)->Init(_plane_z_order, _plane_transform,
- _overlay_texture_id, _bounds_x,
- _bounds_y, _bounds_width, _bounds_height,
- _uv_x, _uv_y, _uv_width, _uv_height);
+ GLfloat _uv_height,
+ GLboolean _handle_scaling) {
+ static_cast<ValueType*>(cmd)->Init(
+ _plane_z_order, _plane_transform, _storage_format, _overlay_texture_id,
+ _bounds_x, _bounds_y, _bounds_width, _bounds_height, _uv_x, _uv_y,
+ _uv_width, _uv_height, _handle_scaling);
return NextCmdAddress<ValueType>(cmd);
}
gpu::CommandHeader header;
int32_t plane_z_order;
uint32_t plane_transform;
+ uint32_t storage_format;
uint32_t overlay_texture_id;
int32_t bounds_x;
int32_t bounds_y;
@@ -13823,10 +13830,11 @@ struct ScheduleOverlayPlaneCHROMIUM {
float uv_y;
float uv_width;
float uv_height;
+ uint32_t handle_scaling;
};
-static_assert(sizeof(ScheduleOverlayPlaneCHROMIUM) == 48,
- "size of ScheduleOverlayPlaneCHROMIUM should be 48");
+static_assert(sizeof(ScheduleOverlayPlaneCHROMIUM) == 56,
+ "size of ScheduleOverlayPlaneCHROMIUM should be 56");
static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, header) == 0,
"offset of ScheduleOverlayPlaneCHROMIUM header should be 0");
static_assert(
@@ -13836,26 +13844,32 @@ static_assert(
offsetof(ScheduleOverlayPlaneCHROMIUM, plane_transform) == 8,
"offset of ScheduleOverlayPlaneCHROMIUM plane_transform should be 8");
static_assert(
- offsetof(ScheduleOverlayPlaneCHROMIUM, overlay_texture_id) == 12,
- "offset of ScheduleOverlayPlaneCHROMIUM overlay_texture_id should be 12");
-static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_x) == 16,
- "offset of ScheduleOverlayPlaneCHROMIUM bounds_x should be 16");
-static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_y) == 20,
- "offset of ScheduleOverlayPlaneCHROMIUM bounds_y should be 20");
+ offsetof(ScheduleOverlayPlaneCHROMIUM, storage_format) == 12,
+ "offset of ScheduleOverlayPlaneCHROMIUM storage_format should be 12");
+static_assert(
+ offsetof(ScheduleOverlayPlaneCHROMIUM, overlay_texture_id) == 16,
+ "offset of ScheduleOverlayPlaneCHROMIUM overlay_texture_id should be 16");
+static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_x) == 20,
+ "offset of ScheduleOverlayPlaneCHROMIUM bounds_x should be 20");
+static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_y) == 24,
+ "offset of ScheduleOverlayPlaneCHROMIUM bounds_y should be 24");
+static_assert(
+ offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_width) == 28,
+ "offset of ScheduleOverlayPlaneCHROMIUM bounds_width should be 28");
static_assert(
- offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_width) == 24,
- "offset of ScheduleOverlayPlaneCHROMIUM bounds_width should be 24");
+ offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_height) == 32,
+ "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 32");
+static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 36,
+ "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 36");
+static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 40,
+ "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 40");
+static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 44,
+ "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 44");
+static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 48,
+ "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 48");
static_assert(
- offsetof(ScheduleOverlayPlaneCHROMIUM, bounds_height) == 28,
- "offset of ScheduleOverlayPlaneCHROMIUM bounds_height should be 28");
-static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32,
- "offset of ScheduleOverlayPlaneCHROMIUM uv_x should be 32");
-static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36,
- "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 36");
-static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40,
- "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 40");
-static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44,
- "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 44");
+ offsetof(ScheduleOverlayPlaneCHROMIUM, handle_scaling) == 52,
+ "offset of ScheduleOverlayPlaneCHROMIUM handle_scaling should be 52");
struct ScheduleCALayerCHROMIUM {
typedef ScheduleCALayerCHROMIUM 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