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

Unified Diff: gpu/command_buffer/client/gles2_trace_implementation_impl_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
Index: gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h
diff --git a/gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h b/gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h
index 22961d952c46927a47aa0fe949e66682ad5f0dd4..fc5efe0cecd8e3822c78eb4be37336dda7a8ca25 100644
--- a/gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h
+++ b/gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h
@@ -2142,23 +2142,29 @@ void GLES2TraceImplementation::ScheduleOverlayPlaneCHROMIUM(
bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height);
}
+void GLES2TraceImplementation::ScheduleCALayerSharedStateCHROMIUM(
+ GLfloat opacity,
+ GLboolean is_clipped,
+ const GLfloat* clip_rect,
+ GLint sorting_context_id,
+ const GLfloat* transform) {
+ TRACE_EVENT_BINARY_EFFICIENT0(
+ "gpu", "GLES2Trace::ScheduleCALayerSharedStateCHROMIUM");
+ gl_->ScheduleCALayerSharedStateCHROMIUM(opacity, is_clipped, clip_rect,
+ sorting_context_id, transform);
+}
+
void GLES2TraceImplementation::ScheduleCALayerCHROMIUM(
GLuint contents_texture_id,
const GLfloat* contents_rect,
- GLfloat opacity,
GLuint background_color,
GLuint edge_aa_mask,
const GLfloat* bounds_rect,
- GLboolean is_clipped,
- const GLfloat* clip_rect,
- GLint sorting_context_id,
- const GLfloat* transform,
GLuint filter) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ScheduleCALayerCHROMIUM");
- gl_->ScheduleCALayerCHROMIUM(contents_texture_id, contents_rect, opacity,
+ gl_->ScheduleCALayerCHROMIUM(contents_texture_id, contents_rect,
background_color, edge_aa_mask, bounds_rect,
- is_clipped, clip_rect, sorting_context_id,
- transform, filter);
+ filter);
}
void GLES2TraceImplementation::ScheduleCALayerInUseQueryCHROMIUM(
« no previous file with comments | « gpu/command_buffer/client/gles2_trace_implementation_autogen.h ('k') | gpu/command_buffer/cmd_buffer_functions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698