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

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

Issue 1887533002: Add plumbing to command buffer for CALayer min and mag filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix parameter ordering. Created 4 years, 8 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 3f3fe78311572f138b70648014065d7707f03f07..8d871798edee597a3a40588c8368ed603ad50300 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -13894,6 +13894,7 @@ struct ScheduleCALayerCHROMIUM {
GLuint _edge_aa_mask,
GLboolean _is_clipped,
GLint _sorting_context_id,
+ GLuint _filter,
GLuint _shm_id,
GLuint _shm_offset) {
SetHeader();
@@ -13903,6 +13904,7 @@ struct ScheduleCALayerCHROMIUM {
edge_aa_mask = _edge_aa_mask;
is_clipped = _is_clipped;
sorting_context_id = _sorting_context_id;
+ filter = _filter;
shm_id = _shm_id;
shm_offset = _shm_offset;
}
@@ -13914,11 +13916,12 @@ struct ScheduleCALayerCHROMIUM {
GLuint _edge_aa_mask,
GLboolean _is_clipped,
GLint _sorting_context_id,
+ GLuint _filter,
GLuint _shm_id,
GLuint _shm_offset) {
static_cast<ValueType*>(cmd)->Init(
_contents_texture_id, _opacity, _background_color, _edge_aa_mask,
- _is_clipped, _sorting_context_id, _shm_id, _shm_offset);
+ _is_clipped, _sorting_context_id, _filter, _shm_id, _shm_offset);
return NextCmdAddress<ValueType>(cmd);
}
@@ -13929,12 +13932,13 @@ struct ScheduleCALayerCHROMIUM {
uint32_t edge_aa_mask;
uint32_t is_clipped;
int32_t sorting_context_id;
+ uint32_t filter;
uint32_t shm_id;
uint32_t shm_offset;
};
-static_assert(sizeof(ScheduleCALayerCHROMIUM) == 36,
- "size of ScheduleCALayerCHROMIUM should be 36");
+static_assert(sizeof(ScheduleCALayerCHROMIUM) == 40,
+ "size of ScheduleCALayerCHROMIUM should be 40");
static_assert(offsetof(ScheduleCALayerCHROMIUM, header) == 0,
"offset of ScheduleCALayerCHROMIUM header should be 0");
static_assert(
@@ -13952,10 +13956,12 @@ static_assert(offsetof(ScheduleCALayerCHROMIUM, is_clipped) == 20,
static_assert(
offsetof(ScheduleCALayerCHROMIUM, sorting_context_id) == 24,
"offset of ScheduleCALayerCHROMIUM sorting_context_id should be 24");
-static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_id) == 28,
- "offset of ScheduleCALayerCHROMIUM shm_id should be 28");
-static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_offset) == 32,
- "offset of ScheduleCALayerCHROMIUM shm_offset should be 32");
+static_assert(offsetof(ScheduleCALayerCHROMIUM, filter) == 28,
+ "offset of ScheduleCALayerCHROMIUM filter should be 28");
+static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_id) == 32,
+ "offset of ScheduleCALayerCHROMIUM shm_id should be 32");
+static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_offset) == 36,
+ "offset of ScheduleCALayerCHROMIUM shm_offset should be 36");
struct CommitOverlayPlanesCHROMIUM {
typedef CommitOverlayPlanesCHROMIUM 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