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

Unified Diff: mojo/gpu/mojo_gles2_impl_autogen.cc

Issue 1409193007: gpu: Add CHROMIUM_schedule_ca_layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 5 years, 1 month 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: mojo/gpu/mojo_gles2_impl_autogen.cc
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.cc b/mojo/gpu/mojo_gles2_impl_autogen.cc
index 6e4fb9b13f2ff51b55d1a7dca2061923234e5c8e..e6386ea2181c450272d99649e1852deabda53f8a 100644
--- a/mojo/gpu/mojo_gles2_impl_autogen.cc
+++ b/mojo/gpu/mojo_gles2_impl_autogen.cc
@@ -1699,6 +1699,16 @@ void MojoGLES2Impl::ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y,
bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height);
}
+void MojoGLES2Impl::ScheduleCALayerCHROMIUM(GLuint contents_texture_id,
+ const GLfloat* contents_rect,
+ GLfloat opacity,
+ const GLuint background_color,
+ const GLfloat* bounds_size,
+ const GLfloat* transform) {
+ MojoGLES2MakeCurrent(context_);
+ glScheduleCALayerCHROMIUM(contents_texture_id, contents_rect, opacity,
+ background_color, bounds_size, transform);
+}
void MojoGLES2Impl::SwapInterval(GLint interval) {
MojoGLES2MakeCurrent(context_);
glSwapInterval(interval);

Powered by Google App Engine
This is Rietveld 408576698