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

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

Issue 2852953003: Use real colorspace for DirectComposition overlays.
Patch Set: rebase Created 3 years, 7 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 678498d6ea9270623c3cd726af0d836f9985b752..ece4d0d7569c074028f0db209b22459486058220 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -13941,6 +13941,7 @@ struct ScheduleDCLayerCHROMIUM {
GLuint _background_color,
GLuint _edge_aa_mask,
GLuint _filter,
+ GLsizei _color_space_size,
GLuint _shm_id,
GLuint _shm_offset) {
SetHeader();
@@ -13948,6 +13949,7 @@ struct ScheduleDCLayerCHROMIUM {
background_color = _background_color;
edge_aa_mask = _edge_aa_mask;
filter = _filter;
+ color_space_size = _color_space_size;
shm_id = _shm_id;
shm_offset = _shm_offset;
}
@@ -13957,11 +13959,12 @@ struct ScheduleDCLayerCHROMIUM {
GLuint _background_color,
GLuint _edge_aa_mask,
GLuint _filter,
+ GLsizei _color_space_size,
GLuint _shm_id,
GLuint _shm_offset) {
static_cast<ValueType*>(cmd)->Init(_num_textures, _background_color,
- _edge_aa_mask, _filter, _shm_id,
- _shm_offset);
+ _edge_aa_mask, _filter,
+ _color_space_size, _shm_id, _shm_offset);
return NextCmdAddress<ValueType>(cmd);
}
@@ -13970,12 +13973,13 @@ struct ScheduleDCLayerCHROMIUM {
uint32_t background_color;
uint32_t edge_aa_mask;
uint32_t filter;
+ int32_t color_space_size;
uint32_t shm_id;
uint32_t shm_offset;
};
-static_assert(sizeof(ScheduleDCLayerCHROMIUM) == 28,
- "size of ScheduleDCLayerCHROMIUM should be 28");
+static_assert(sizeof(ScheduleDCLayerCHROMIUM) == 32,
+ "size of ScheduleDCLayerCHROMIUM should be 32");
static_assert(offsetof(ScheduleDCLayerCHROMIUM, header) == 0,
"offset of ScheduleDCLayerCHROMIUM header should be 0");
static_assert(offsetof(ScheduleDCLayerCHROMIUM, num_textures) == 4,
@@ -13986,10 +13990,13 @@ static_assert(offsetof(ScheduleDCLayerCHROMIUM, edge_aa_mask) == 12,
"offset of ScheduleDCLayerCHROMIUM edge_aa_mask should be 12");
static_assert(offsetof(ScheduleDCLayerCHROMIUM, filter) == 16,
"offset of ScheduleDCLayerCHROMIUM filter should be 16");
-static_assert(offsetof(ScheduleDCLayerCHROMIUM, shm_id) == 20,
- "offset of ScheduleDCLayerCHROMIUM shm_id should be 20");
-static_assert(offsetof(ScheduleDCLayerCHROMIUM, shm_offset) == 24,
- "offset of ScheduleDCLayerCHROMIUM shm_offset should be 24");
+static_assert(
+ offsetof(ScheduleDCLayerCHROMIUM, color_space_size) == 20,
+ "offset of ScheduleDCLayerCHROMIUM color_space_size should be 20");
+static_assert(offsetof(ScheduleDCLayerCHROMIUM, shm_id) == 24,
+ "offset of ScheduleDCLayerCHROMIUM shm_id should be 24");
+static_assert(offsetof(ScheduleDCLayerCHROMIUM, shm_offset) == 28,
+ "offset of ScheduleDCLayerCHROMIUM shm_offset should be 28");
struct MatrixLoadfCHROMIUMImmediate {
typedef MatrixLoadfCHROMIUMImmediate ValueType;

Powered by Google App Engine
This is Rietveld 408576698