'Chris Mumford' via Ozone-Dev
2018-02-21 18:34:01 UTC
Hoping for some help from the Ozone dev's...
So I've got a test that uses the RenderViewHostTestHarness
<https://cs.chromium.org/chromium/src/content/public/test/test_renderer_host.h?type=cs&q=RenderViewHostTestHarness&l=190>,
but it sets the TestBrowserThreadBundle::IO_MAINLOOP option because it
reads/writes values that can only be accessed on the IO thread. At present
this works on all platforms except those using Ozone. It's failing this one
check:
FATAL:message_loop.h(440)] Check failed: loop->IsType(MessageLoop::TYPE_UI).
It looks like all platforms *except Ozone* can create a window on the IO
thread. (see WindowTreeHostPlatform()
<https://cs.chromium.org/chromium/src/ui/aura/window_tree_host_platform.cc?type=cs&q=WindowTreeHostPlatform::WindowTreeHostPlatform&l=42>),
but it's the X11WindowOzone that calls AddPlatformEventDispatcher that
results in this exception.
Any clever ideas as to the best way to solve this?
So I've got a test that uses the RenderViewHostTestHarness
<https://cs.chromium.org/chromium/src/content/public/test/test_renderer_host.h?type=cs&q=RenderViewHostTestHarness&l=190>,
but it sets the TestBrowserThreadBundle::IO_MAINLOOP option because it
reads/writes values that can only be accessed on the IO thread. At present
this works on all platforms except those using Ozone. It's failing this one
check:
FATAL:message_loop.h(440)] Check failed: loop->IsType(MessageLoop::TYPE_UI).
It looks like all platforms *except Ozone* can create a window on the IO
thread. (see WindowTreeHostPlatform()
<https://cs.chromium.org/chromium/src/ui/aura/window_tree_host_platform.cc?type=cs&q=WindowTreeHostPlatform::WindowTreeHostPlatform&l=42>),
but it's the X11WindowOzone that calls AddPlatformEventDispatcher that
results in this exception.
Any clever ideas as to the best way to solve this?
--
You received this message because you are subscribed to the Google Groups "Ozone-Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ozone-dev+***@chromium.org.
You received this message because you are subscribed to the Google Groups "Ozone-Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ozone-dev+***@chromium.org.