viz: Drop and recreate LayerTreeFrameSinks when fallback to software
This sets up the VizProcessTransportFactory to respond to the notice that it should use software compositing. In that case it will call OnLostMainThreadSharedContext() and release all the FrameSinks from ui::Compositors. These compositors then make a new LayerTreeFrameSink coming back to the VizProcessTransportFactory. Also eliminate the call to EstablishGpuChannel if software compositing is being used, and jump right to OnEstablishedGpuChannel() with a null GpuChannelHost. R=kylechar@chromium.org Bug: 730660 Change-Id: I54feb3be3b27993c8b87a3ee30a210e540b2b1c8 Reviewed-on: https://chromium-review.googlesource.com/789553 Commit-Queue: danakj <danakj@chromium.org> Reviewed-by:kylechar <kylechar@chromium.org> Cr-Commit-Position: refs/heads/master@{#520135}
Showing
Please register or sign in to comment