Chrome Version: M69
OS: Win10
The current design in DCLayerTree::SwapChainPresenter::PresentToSwapChain() changes the swapchain format from YUY2 to RGBA (see ShoudBeYUY2()) if the swapchain cannot be promoted to hardware overlay. This result can be queried through swap_chain_media->GetFrameStatisticsMedia(&stats). If the hardware is utilized, stats.CompositionMode is MODE_OVERLAY. Otherwise it shows MODE_COMPOSED.
The purpose of this change is for performance and power improvement. We should re-measure it on the new hardware, like Intel kabylake, to make sure this design gives us the most benefit.
Also, we should collect separate data for protected videos.
Comment 1 by bugdroid1@chromium.org
, Jun 20 2018