| Index: content/browser/renderer_host/compositor_impl_android.cc
|
| diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
|
| index fa05be5d31f5396e538b005bb998db285d2acae1..789c5ea3e3f27917c486d5cdeb83287717305de0 100644
|
| --- a/content/browser/renderer_host/compositor_impl_android.cc
|
| +++ b/content/browser/renderer_host/compositor_impl_android.cc
|
| @@ -97,9 +97,13 @@ class OutputSurfaceWithoutParent : public cc::OutputSurface,
|
|
|
| void SwapBuffers(cc::CompositorFrame* frame) override {
|
| GetCommandBufferProxy()->SetLatencyInfo(frame->metadata.latency_info);
|
| - DCHECK(frame->gl_frame_data->sub_buffer_rect ==
|
| - gfx::Rect(frame->gl_frame_data->size));
|
| - context_provider_->ContextSupport()->Swap();
|
| + if (frame->gl_frame_data->sub_buffer_rect.IsEmpty()) {
|
| + context_provider_->ContextSupport()->CommitOverlayPlanes();
|
| + } else {
|
| + DCHECK(frame->gl_frame_data->sub_buffer_rect ==
|
| + gfx::Rect(frame->gl_frame_data->size));
|
| + context_provider_->ContextSupport()->Swap();
|
| + }
|
| client_->DidSwapBuffers();
|
| }
|
|
|
|
|