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

Unified Diff: content/renderer/media/rtc_video_decoder_factory.h

Issue 13890012: Integrate VDA with WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update the license of rtc_video_decoder.h Created 7 years, 5 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 | « content/renderer/media/rtc_video_decoder.cc ('k') | content/renderer/media/rtc_video_decoder_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_video_decoder_factory.h
diff --git a/content/renderer/media/rtc_video_decoder_factory.h b/content/renderer/media/rtc_video_decoder_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..c64d4ce5347396869fa6861448b0b2a92f57e3c9
--- /dev/null
+++ b/content/renderer/media/rtc_video_decoder_factory.h
@@ -0,0 +1,46 @@
+// Copyright (c) 2013 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 CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_
+#define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_
+
+#include "base/message_loop/message_loop_proxy.h"
+#include "base/threading/thread.h"
+#include "content/common/content_export.h"
+#include "media/filters/gpu_video_decoder.h"
+#include "third_party/libjingle/source/talk/media/webrtc/webrtcvideodecoderfactory.h"
+#include "third_party/webrtc/modules/video_coding/codecs/interface/video_codec_interface.h"
+
+namespace webrtc {
+class VideoDecoder;
+}
+
+namespace content {
+
+class CONTENT_EXPORT RTCVideoDecoderFactory
+ : NON_EXPORTED_BASE(public cricket::WebRtcVideoDecoderFactory) {
+ public:
+ RTCVideoDecoderFactory(
+ const scoped_refptr<media::GpuVideoDecoder::Factories>& gpu_factories);
+ virtual ~RTCVideoDecoderFactory();
+
+ // Runs on Chrome_libJingle_WorkerThread. The child thread is blocked while
+ // this runs.
+ virtual webrtc::VideoDecoder* CreateVideoDecoder(webrtc::VideoCodecType type)
+ OVERRIDE;
+
+ // Runs on Chrome_libJingle_WorkerThread. The child thread is blocked while
+ // this runs.
+ virtual void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) OVERRIDE;
+
+ private:
+ scoped_refptr<base::MessageLoopProxy> vda_loop_proxy_;
+ scoped_ptr<webrtc::VideoDecoder> decoder_;
+
+ DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoderFactory);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | content/renderer/media/rtc_video_decoder_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698