Commit ea02813b authored by sadrul's avatar sadrul Committed by Commit bot

cros: Fix video unittests on cros device.

Some ozone platforms (e.g. drm) expects to be able to watch a file
descriptor, so use a TYPE_IO message-loop for the gpu process host
thread.

BUG=715957
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2852553003
Cr-Commit-Position: refs/heads/master@{#467889}
parent 03ac5d01
...@@ -268,6 +268,10 @@ class VideoDecodeAcceleratorTestEnvironment : public ::testing::Environment { ...@@ -268,6 +268,10 @@ class VideoDecodeAcceleratorTestEnvironment : public ::testing::Environment {
base::Thread::Options options; base::Thread::Options options;
#if defined(OS_WIN) #if defined(OS_WIN)
options.message_loop_type = base::MessageLoop::TYPE_UI; options.message_loop_type = base::MessageLoop::TYPE_UI;
#elif defined(USE_OZONE)
// Some ozone platforms (e.g. drm) expects to be able to watch a file
// handler from this thread. So use the IO type message loop here.
options.message_loop_type = base::MessageLoop::TYPE_IO;
#endif #endif
rendering_thread_.StartWithOptions(options); rendering_thread_.StartWithOptions(options);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment