diff options
Diffstat (limited to 'content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc')
-rw-r--r-- | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc index ab7379c..39dfc04 100644 --- a/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc +++ b/content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc @@ -292,6 +292,20 @@ void WebGraphicsContext3DCommandBufferImpl::prepareTexture() { #endif } +void WebGraphicsContext3DCommandBufferImpl::postSubBufferCHROMIUM( + int x, int y, int width, int height) { + // Same flow control as WebGraphicsContext3DCommandBufferImpl::prepareTexture + // (see above). + RenderViewImpl* renderview = + web_view_ ? RenderViewImpl::FromWebView(web_view_) : NULL; + if (renderview) + renderview->OnViewContextSwapBuffersPosted(); + gl_->PostSubBufferCHROMIUM(x, y, width, height); + context_->Echo(base::Bind( + &WebGraphicsContext3DCommandBufferImpl::OnSwapBuffersComplete, + weak_ptr_factory_.GetWeakPtr())); +} + void WebGraphicsContext3DCommandBufferImpl::reshape(int width, int height) { cached_width_ = width; cached_height_ = height; |