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

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: Comments from piman. 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
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..28cfd8041b5708e7b3b2903ad0f24e767ced5abf 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -2753,20 +2753,29 @@ 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 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);
}
}
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698