| 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 5fce83820872c88688f24a59423cf285f1de8fde..6d402c5caefe69da917e8611c020b49c42421e83 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation.cc
|
| +++ b/gpu/command_buffer/client/gles2_implementation.cc
|
| @@ -2649,5 +2649,21 @@ void GLES2Implementation::DestroyStreamTextureCHROMIUM(GLuint texture) {
|
| helper_->DestroyStreamTextureCHROMIUM(texture);
|
| }
|
|
|
| +void GLES2Implementation::PostSubBufferCHROMIUM(
|
| + GLint x, GLint y, GLint width, GLint height) {
|
| + GPU_CLIENT_LOG("[" << this << "] PostSubBufferCHROMIUM("
|
| + << x << ", " << y << ", " << width << ", " << height << ")");
|
| + TRACE_EVENT0("gpu", "GLES2::PostSubBufferCHROMIUM");
|
| +
|
| + // Same flow control as GLES2Implementation::SwapBuffers (see comments there).
|
| + swap_buffers_tokens_.push(helper_->InsertToken());
|
| + helper_->PostSubBufferCHROMIUM(x, y, width, height);
|
| + helper_->CommandBufferHelper::Flush();
|
| + if (swap_buffers_tokens_.size() > kMaxSwapBuffers + 1) {
|
| + helper_->WaitForToken(swap_buffers_tokens_.front());
|
| + swap_buffers_tokens_.pop();
|
| + }
|
| +}
|
| +
|
| } // namespace gles2
|
| } // namespace gpu
|
|
|