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

Unified Diff: content/renderer/media/webrtc/peer_connection_dependency_factory.h

Issue 2363303002: [WIP] Proxy RtcVideoDecoder calls to a media::VideoDecoder.
Patch Set: Now working with remote ffmpeg decoder Created 4 years, 2 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
Index: content/renderer/media/webrtc/peer_connection_dependency_factory.h
diff --git a/content/renderer/media/webrtc/peer_connection_dependency_factory.h b/content/renderer/media/webrtc/peer_connection_dependency_factory.h
index 4f52425d31884f1a2e36bd01a95e0e98cd4faafc..963ebef447c1f583f864cf38435944cf74d07d1f 100644
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.h
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.h
@@ -25,6 +25,7 @@ class WaitableEvent;
namespace media {
class GpuVideoAcceleratorFactories;
+class VideoDecoder;
}
namespace rtc {
@@ -132,8 +133,13 @@ class CONTENT_EXPORT PeerConnectionDependencyFactory
// creating PeerConnection objects.
void CreatePeerConnectionFactory();
+ using CreateVideoDecoderCB =
+ base::Callback<std::unique_ptr<media::VideoDecoder>()>;
+
void InitializeSignalingThread(
media::GpuVideoAcceleratorFactories* gpu_factories,
+ const CreateVideoDecoderCB& create_video_decoder_cb,
+ const scoped_refptr<base::SingleThreadTaskRunner>& decoder_task_runner,
base::WaitableEvent* event);
void InitializeWorkerThread(rtc::Thread** thread,
@@ -162,6 +168,8 @@ class CONTENT_EXPORT PeerConnectionDependencyFactory
base::Thread chrome_signaling_thread_;
base::Thread chrome_worker_thread_;
+ const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+
DISALLOW_COPY_AND_ASSIGN(PeerConnectionDependencyFactory);
};

Powered by Google App Engine
This is Rietveld 408576698