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 7bd07b4212886bb4eba8fb5060aea91926dff144..e14d7cdf2c239ca350632489939b4a5c8a759257 100644 |
--- a/gpu/command_buffer/client/gles2_implementation.cc |
+++ b/gpu/command_buffer/client/gles2_implementation.cc |
@@ -704,15 +704,8 @@ void GLES2Implementation::SwapBuffers() { |
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( |