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

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: Comments from ccameron. 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..0086adc0d9542caae6c3aa06bd9fcda38b3a496f 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -13895,7 +13895,8 @@ struct ScheduleCALayerCHROMIUM {
GLboolean _is_clipped,
GLint _sorting_context_id,
GLuint _shm_id,
- GLuint _shm_offset) {
+ GLuint _shm_offset,
+ GLuint _filter) {
SetHeader();
contents_texture_id = _contents_texture_id;
opacity = _opacity;
@@ -13905,6 +13906,7 @@ struct ScheduleCALayerCHROMIUM {
sorting_context_id = _sorting_context_id;
shm_id = _shm_id;
shm_offset = _shm_offset;
+ filter = _filter;
}
void* Set(void* cmd,
@@ -13915,10 +13917,11 @@ struct ScheduleCALayerCHROMIUM {
GLboolean _is_clipped,
GLint _sorting_context_id,
GLuint _shm_id,
- GLuint _shm_offset) {
+ GLuint _shm_offset,
+ GLuint _filter) {
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, _shm_id, _shm_offset, _filter);
return NextCmdAddress<ValueType>(cmd);
}
@@ -13931,10 +13934,11 @@ struct ScheduleCALayerCHROMIUM {
int32_t sorting_context_id;
uint32_t shm_id;
uint32_t shm_offset;
+ uint32_t filter;
};
-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(
@@ -13956,6 +13960,8 @@ 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) == 36,
+ "offset of ScheduleCALayerCHROMIUM filter should be 36");
struct CommitOverlayPlanesCHROMIUM {
typedef CommitOverlayPlanesCHROMIUM ValueType;

Powered by Google App Engine
This is Rietveld 408576698