view-manager: Fix some issues regarding running tests in x11.
During testing, some X11 windows do not get mapped at all (for as yet
not-understood reasons). So the calls to BlockUntilWindowMapped() blocks
indefinitely. So set the override_redirect flag on when creating windows
in tests.
Also:
. Trigger PlatformWindowDelegate::OnAcceleratedWidgetAvailable() after
mapping the window completes.
. Initialize aura::Env after initializing GL.
. Remove the --use-test-config flag, and instead replace with a combination
of --use-x11-test-config to set-up X11 for tests (threaded, and turn on
override_redirect), and the existing
--override-use-gl-with-osmesa-for-tests.
BUG=523144
Review URL: https://codereview.chromium.org/1305893006
Cr-Commit-Position: refs/heads/master@{#346948}
CrOS-Libchrome-Original-Commit: f33f4399b40b281758038d237416e3560aca4e0c
1 file changed