Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1074)

Unified Diff: media/gpu/video_decode_accelerator_unittest.cc

Issue 2852553003: cros: Fix video unittests on cros device. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/video_decode_accelerator_unittest.cc
diff --git a/media/gpu/video_decode_accelerator_unittest.cc b/media/gpu/video_decode_accelerator_unittest.cc
index 168bd5970756b2df702d9e5e5bb6a6a7c90eaf3f..97ffb0595269d2795d1348af13b96dd0f8f93f52 100644
--- a/media/gpu/video_decode_accelerator_unittest.cc
+++ b/media/gpu/video_decode_accelerator_unittest.cc
@@ -268,6 +268,10 @@ class VideoDecodeAcceleratorTestEnvironment : public ::testing::Environment {
base::Thread::Options options;
#if defined(OS_WIN)
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
rendering_thread_.StartWithOptions(options);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698