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

Side by Side 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: address some review comments Created 7 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_
7
8 #include "base/message_loop_proxy.h"
9 #include "content/common/content_export.h"
10 #include "media/filters/gpu_video_decoder.h"
11 #include "third_party/libjingle/source/talk/media/webrtc/webrtcvideodecoderfacto ry.h"
12
13 namespace webrtc {
14 class VideoDecoder;
15 }
16
17 namespace content {
18
19 class CONTENT_EXPORT RTCVideoDecoderFactory
20 : NON_EXPORTED_BASE(public cricket::WebRtcVideoDecoderFactory) {
21 public:
22 RTCVideoDecoderFactory(
23 const scoped_refptr<base::MessageLoopProxy>& decoder_message_loop,
24 const scoped_refptr<media::GpuVideoDecoder::Factories>& gpu_factories);
25
26 virtual webrtc::VideoDecoder* CreateVideoDecoder(
27 webrtc::VideoCodecType type) OVERRIDE;
28
29 virtual void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) OVERRIDE;
30
31 private:
32 scoped_refptr<base::MessageLoopProxy> decoder_message_loop_;
33 scoped_refptr<media::GpuVideoDecoder::Factories> gpu_factories_;
34
35 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoderFactory);
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698