OLD | NEW |
---|---|
(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 "base/threading/thread.h" | |
10 #include "content/common/content_export.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 class RendererGpuVideoDecoderFactories; | |
19 | |
20 class CONTENT_EXPORT RTCVideoDecoderFactory | |
Ami GONE FROM CHROMIUM
2013/06/11 23:48:05
Add a TODO to merge with RTCVideoDecoderFactoryTv
wuchengli
2013/06/13 10:28:07
Ditto.
| |
21 : NON_EXPORTED_BASE(public cricket::WebRtcVideoDecoderFactory) { | |
Ami GONE FROM CHROMIUM
2013/06/11 23:48:05
nit: colon goes on previous line (unlike in webkit
wuchengli
2013/06/13 10:28:07
Ditto. It goes on previous line if the parent clas
| |
22 public: | |
23 RTCVideoDecoderFactory( | |
Ami GONE FROM CHROMIUM
2013/06/11 23:48:05
Doco ownership transfer of |vda_thread|.
wuchengli
2013/06/13 10:28:07
Changed the argument type to scoped_ptr<base::Thre
| |
24 const scoped_refptr<RendererGpuVideoDecoderFactories>& gpu_factories, | |
25 base::Thread* vda_thread); | |
26 | |
27 // Runs on Chrome_libJingle_WorkerThread and blocks child thread. | |
Ami GONE FROM CHROMIUM
2013/06/11 23:48:05
here and below do you mean "blocks until child thr
wuchengli
2013/06/13 10:28:07
I meant the child thread blocks on this completing
| |
28 virtual webrtc::VideoDecoder* CreateVideoDecoder( | |
29 webrtc::VideoCodecType type) OVERRIDE; | |
30 | |
31 // Runs on Chrome_libJingle_WorkerThread and blocks child thread. | |
32 virtual void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) OVERRIDE; | |
33 | |
34 private: | |
35 scoped_refptr<RendererGpuVideoDecoderFactories> gpu_factories_; | |
36 scoped_ptr<base::Thread> vda_thread_; | |
37 | |
38 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoderFactory); | |
39 }; | |
40 | |
41 } // namespace content | |
42 | |
43 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_ | |
OLD | NEW |