Disable overlay support when the overlay swap chain creation fails.

The current way to handle the overlay swap chain creation failure might cause
a complet black browser window, which is a very bad user experience. If we
disable overlay when the creation fails, the video playback will be able to
continue through GL composition if there is no other issue.

Bug: 954661
Change-Id: I5f1355f9ff46d7c9a88a1ff0ccad4ed229710eb5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1576034
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Commit-Queue: Maggie Chen <magchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#652733}
1 file changed