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

Unified Diff: gpu/command_buffer/client/gles2_cmd_helper_autogen.h

Issue 2163493002: Break glScheduleCALayerCHROMIUM into smaller functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp37_cleanup_calayeroverlay
Patch Set: Rebase. Created 4 years, 5 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/client/gles2_cmd_helper_autogen.h
diff --git a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
index 7a9074bb3fc83022c7a60985f8b306c496e290fa..9fbc197d495786de5b479d5b546d918d4f9e4d08 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -2753,20 +2753,37 @@ void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
}
}
+void ScheduleCALayerSharedStateCHROMIUM(GLfloat opacity,
+ GLboolean is_clipped,
+ GLint sorting_context_id,
+ GLuint shm_id,
+ GLuint shm_offset) {
+ gles2::cmds::ScheduleCALayerSharedStateCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::ScheduleCALayerSharedStateCHROMIUM>();
+ if (c) {
+ c->Init(opacity, is_clipped, sorting_context_id, shm_id, shm_offset);
+ }
+}
+
+void UnscheduleCALayerSharedStateCHROMIUM() {
+ gles2::cmds::UnscheduleCALayerSharedStateCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::UnscheduleCALayerSharedStateCHROMIUM>();
+ if (c) {
+ c->Init();
+ }
+}
+
void ScheduleCALayerCHROMIUM(GLuint contents_texture_id,
- GLfloat opacity,
GLuint background_color,
GLuint edge_aa_mask,
- GLboolean is_clipped,
- GLint sorting_context_id,
GLuint filter,
GLuint shm_id,
GLuint shm_offset) {
gles2::cmds::ScheduleCALayerCHROMIUM* c =
GetCmdSpace<gles2::cmds::ScheduleCALayerCHROMIUM>();
if (c) {
- c->Init(contents_texture_id, opacity, background_color, edge_aa_mask,
- is_clipped, sorting_context_id, filter, shm_id, shm_offset);
+ c->Init(contents_texture_id, background_color, edge_aa_mask, filter, shm_id,
+ shm_offset);
}
}

Powered by Google App Engine
This is Rietveld 408576698