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

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 review comments Created 7 years, 6 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 "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
21 : NON_EXPORTED_BASE(public cricket::WebRtcVideoDecoderFactory) {
22 public:
23 RTCVideoDecoderFactory(
24 const scoped_refptr<RendererGpuVideoDecoderFactories>& gpu_factories,
25 scoped_ptr<base::Thread> vda_thread);
26
27 // Runs on Chrome_libJingle_WorkerThread. The child thread blocks on this
28 // completing.
Ami GONE FROM CHROMIUM 2013/06/13 20:10:03 This is clearer, but even clearer might be "Child
wuchengli 2013/06/18 16:11:23 Done.
29 virtual webrtc::VideoDecoder* CreateVideoDecoder(webrtc::VideoCodecType type)
30 OVERRIDE;
31
32 // Runs on Chrome_libJingle_WorkerThread. The child thread blocks on this
33 // completing.
34 virtual void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) OVERRIDE;
35
36 private:
37 scoped_refptr<RendererGpuVideoDecoderFactories> gpu_factories_;
38 scoped_ptr<base::Thread> vda_thread_;
39
40 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoderFactory);
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698