Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_TASK_RUNNER_H_ | |
| 6 #define MEDIA_BASE_ANDROID_MEDIA_TASK_RUNNER_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "base/single_thread_task_runner.h" | |
| 10 #include "media/base/media_export.h" | |
| 11 | |
| 12 namespace media { | |
| 13 | |
| 14 // Returns the task runner for the media thread | |
|
xhwang
2015/09/29 17:28:24
tiny nit: add period at end
Tima Vaisburd
2015/09/29 19:55:44
Done.
| |
| 15 MEDIA_EXPORT scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner(); | |
| 16 | |
| 17 // Returns true if the MediaCodecPlayer (which works on Media thread) should be | |
| 18 // used. This behavior is controlled by a finch flag. | |
| 19 MEDIA_EXPORT bool UseMediaThreadForMediaPlayback(); | |
| 20 | |
| 21 } // namespace media | |
| 22 | |
| 23 #endif // MEDIA_BASE_ANDROID_MEDIA_TASK_RUNNER_H_ | |
| OLD | NEW |