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

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

Issue 6373013: Fix for jankiness in some accelerated 2D canvas demos: If there is already a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
===================================================================
--- gpu/command_buffer/client/gles2_implementation.cc (revision 72652)
+++ gpu/command_buffer/client/gles2_implementation.cc (working copy)
@@ -689,6 +689,19 @@
Flush();
}
+void GLES2Implementation::CopyTextureToParentTextureCHROMIUM(
+ GLuint client_child_id, GLuint client_parent_id) {
+ // Wait if this would add too many CopyTextureToParentTexture's
+ if (swap_buffers_tokens_.size() == kMaxSwapBuffers) {
+ helper_->WaitForToken(swap_buffers_tokens_.front());
+ swap_buffers_tokens_.pop();
+ }
+ helper_->CopyTextureToParentTextureCHROMIUM(client_child_id,
+ client_parent_id);
+ swap_buffers_tokens_.push(helper_->InsertToken());
+ Flush();
+}
+
void GLES2Implementation::GenSharedIdsCHROMIUM(
GLuint namespace_id, GLuint id_offset, GLsizei n, GLuint* ids) {
GLint* id_buffer = transfer_buffer_.AllocTyped<GLint>(n);
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698