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 90d3241cd838b483274e61161a3bb237b8b33e18..8bf84020310cb0dd99817318acddc2319a1bc967 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(); |
} |