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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

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_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 584353f07f26e4d8e0d8dfcf201880fb68cce162..e581781861192fe7e35bbf20f8d18e254794c590 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -4998,8 +4998,7 @@ void GLES2Implementation::ScheduleDCLayerSharedStateCHROMIUM(
buffer.shm_id(), buffer.offset());
}
-void GLES2Implementation::ScheduleDCLayerCHROMIUM(GLuint contents_texture_id,
- const GLfloat* contents_rect,
+void GLES2Implementation::ScheduleDCLayerCHROMIUM(const GLfloat* contents_rect,
GLuint background_color,
GLuint edge_aa_mask,
const GLfloat* bounds_rect,
@@ -5014,9 +5013,8 @@ void GLES2Implementation::ScheduleDCLayerCHROMIUM(GLuint contents_texture_id,
GLfloat* mem = static_cast<GLfloat*>(buffer.address());
memcpy(mem + 0, contents_rect, 4 * sizeof(GLfloat));
memcpy(mem + 4, bounds_rect, 4 * sizeof(GLfloat));
- helper_->ScheduleDCLayerCHROMIUM(contents_texture_id, background_color,
- edge_aa_mask, filter, buffer.shm_id(),
- buffer.offset());
+ helper_->ScheduleDCLayerCHROMIUM(background_color, edge_aa_mask, filter,
+ buffer.shm_id(), buffer.offset());
}
void GLES2Implementation::CommitOverlayPlanesCHROMIUM() {

Powered by Google App Engine
This is Rietveld 408576698