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..1841355e0ad0caeb745e7629d4d659e811ad21b0 |
--- /dev/null |
+++ b/content/renderer/media/rtc_video_decoder_factory.h |
@@ -0,0 +1,43 @@ |
+// 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/basictypes.h" |
+#include "base/compiler_specific.h" |
+#include "base/message_loop.h" |
+#include "content/common/content_export.h" |
+#include "content/renderer/media/rtc_video_decoder_bridge.h" |
+#include "media/filters/gpu_video_decoder.h" |
+#include "third_party/libjingle/source/talk/media/webrtc/webrtcvideodecoderfactory.h" |
+ |
+namespace webrtc { |
+class VideoDecoder; |
+} |
+ |
+namespace content { |
+ |
+class CONTENT_EXPORT RTCVideoDecoderFactory |
+ : NON_EXPORTED_BASE(public cricket::WebRtcVideoDecoderFactory) { |
+ public: |
+ RTCVideoDecoderFactory( |
+ const scoped_refptr<base::MessageLoopProxy>& chrome_loop_proxy, |
Ami GONE FROM CHROMIUM
2013/04/26 00:42:05
this isn't a useful variable name
wuchengli
2013/05/08 15:58:56
Changed to decoder_message_loop_.
On 2013/04/26 00
|
+ const scoped_refptr<media::GpuVideoDecoder::Factories>& gpu_factories); |
+ |
+ virtual webrtc::VideoDecoder* CreateVideoDecoder( |
+ webrtc::VideoCodecType type) OVERRIDE; |
+ |
+ virtual void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) OVERRIDE; |
+ |
+ private: |
+ scoped_refptr<base::MessageLoopProxy> chrome_loop_proxy_; |
Ami GONE FROM CHROMIUM
2013/04/26 00:42:05
ditto naming
wuchengli
2013/05/08 15:58:56
Changed to decoder_message_loop_.
On 2013/04/26 00
|
+ scoped_refptr<media::GpuVideoDecoder::Factories> gpu_factories_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoderFactory); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_ |