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

Unified Diff: media/base/android/media_task_runner.h

Issue 1341883003: Prepare MediaDrmBridge to work with MediaCodecPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug526755
Patch Set: Fixed MediaDrmBridgeTest unit tests Created 5 years, 3 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 | « media/base/android/media_source_player.cc ('k') | media/base/android/media_task_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_task_runner.h
diff --git a/media/base/android/media_task_runner.h b/media/base/android/media_task_runner.h
new file mode 100644
index 0000000000000000000000000000000000000000..b91c5472fed440f532b3403e2fd905afd7815864
--- /dev/null
+++ b/media/base/android/media_task_runner.h
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_BASE_ANDROID_MEDIA_TASK_RUNNER_H_
+#define MEDIA_BASE_ANDROID_MEDIA_TASK_RUNNER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "base/single_thread_task_runner.h"
+#include "media/base/media_export.h"
+
+namespace media {
+
+// Returns the task runner for the media thread.
+MEDIA_EXPORT scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner();
+
+// Returns true if the MediaCodecPlayer (which works on Media thread) should be
+// used. This behavior is controlled by a finch flag.
+MEDIA_EXPORT bool UseMediaThreadForMediaPlayback();
+
+} // namespace media
+
+#endif // MEDIA_BASE_ANDROID_MEDIA_TASK_RUNNER_H_
« no previous file with comments | « media/base/android/media_source_player.cc ('k') | media/base/android/media_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698