Skip creating DC video swap chain in all cases when size is zero
Video swap chain size is zero when scaled overlays are supported, and contents rect is zero. The earlier fix missed this case. This CL moves the calculation of swap chain size to DCLayerTree so that we can skip swap chain creation and other steps which depend on swap chain size. A follow-up CL will remove the CHECKs and replace them with UMA where it makes sense. Bug: 792806 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: I3de017da44913c9522a0b98c91324efab8148ee6 Reviewed-on: https://chromium-review.googlesource.com/1018499Reviewed-by:Zhenyao Mo <zmo@chromium.org> Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Cr-Commit-Position: refs/heads/master@{#552225}
Showing
This diff is collapsed.
Please register or sign in to comment