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

Unified Diff: gpu/command_buffer/client/gles2_cmd_helper_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_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 2573fd9bc362655522e72c056a42ae9b9d5cc4a1..0733f7a6cf6a00c01a329e3850f43797e570d766 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -2836,8 +2836,15 @@ void ScheduleDCLayerSharedStateCHROMIUM(GLfloat opacity,
}
}
-void ScheduleDCLayerCHROMIUM(GLuint contents_texture_id,
- GLuint background_color,
+void SetDCLayerTextureCHROMIUM(GLuint index, GLuint contents_texture_id) {
+ gles2::cmds::SetDCLayerTextureCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::SetDCLayerTextureCHROMIUM>();
+ if (c) {
+ c->Init(index, contents_texture_id);
+ }
+}
+
+void ScheduleDCLayerCHROMIUM(GLuint background_color,
GLuint edge_aa_mask,
GLuint filter,
GLuint shm_id,
@@ -2845,8 +2852,7 @@ void ScheduleDCLayerCHROMIUM(GLuint contents_texture_id,
gles2::cmds::ScheduleDCLayerCHROMIUM* c =
GetCmdSpace<gles2::cmds::ScheduleDCLayerCHROMIUM>();
if (c) {
- c->Init(contents_texture_id, background_color, edge_aa_mask, filter, shm_id,
- shm_offset);
+ c->Init(background_color, edge_aa_mask, filter, shm_id, shm_offset);
}
}

Powered by Google App Engine
This is Rietveld 408576698