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

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

Issue 2849743002: Allow binding multiple textures to one DC Layer overlay. (Closed)
Patch Set: improve test Created 3 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/client/gles2_c_lib_autogen.h
diff --git a/gpu/command_buffer/client/gles2_c_lib_autogen.h b/gpu/command_buffer/client/gles2_c_lib_autogen.h
index 8640ab7e4c8d5bc84002bb1cd0503962d8799e96..8c490833f14a73b8704bfe2f545ba41d75b6290d 100644
--- a/gpu/command_buffer/client/gles2_c_lib_autogen.h
+++ b/gpu/command_buffer/client/gles2_c_lib_autogen.h
@@ -1523,15 +1523,17 @@ GLES2ScheduleDCLayerSharedStateCHROMIUM(GLfloat opacity,
gles2::GetGLContext()->ScheduleDCLayerSharedStateCHROMIUM(
opacity, is_clipped, clip_rect, z_order, transform);
}
-void GL_APIENTRY GLES2ScheduleDCLayerCHROMIUM(GLuint contents_texture_id,
- const GLfloat* contents_rect,
+void GL_APIENTRY GLES2SetDCLayerTextureCHROMIUM(GLuint index,
+ GLuint contents_texture_id) {
+ gles2::GetGLContext()->SetDCLayerTextureCHROMIUM(index, contents_texture_id);
+}
+void GL_APIENTRY GLES2ScheduleDCLayerCHROMIUM(const GLfloat* contents_rect,
GLuint background_color,
GLuint edge_aa_mask,
const GLfloat* bounds_rect,
GLuint filter) {
gles2::GetGLContext()->ScheduleDCLayerCHROMIUM(
- contents_texture_id, contents_rect, background_color, edge_aa_mask,
- bounds_rect, filter);
+ contents_rect, background_color, edge_aa_mask, bounds_rect, filter);
}
void GL_APIENTRY GLES2MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) {
gles2::GetGLContext()->MatrixLoadfCHROMIUM(matrixMode, m);
@@ -2919,6 +2921,10 @@ extern const NameToFunc g_gles2_function_table[] = {
glScheduleDCLayerSharedStateCHROMIUM),
},
{
+ "glSetDCLayerTextureCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glSetDCLayerTextureCHROMIUM),
+ },
+ {
"glScheduleDCLayerCHROMIUM",
reinterpret_cast<GLES2FunctionPointer>(glScheduleDCLayerCHROMIUM),
},

Powered by Google App Engine
This is Rietveld 408576698