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

Side by Side Diff: content/public/renderer/media_stream_renderer_factory.h

Issue 2529263004: Move passing of WebRTC rendering frames to IO thread (Closed)
Patch Set: ncarter@ comment. Created 4 years 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
« no previous file with comments | « no previous file | content/renderer/media/media_stream_renderer_factory_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_RENDERER_FACTORY_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_RENDERER_FACTORY_H_
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_RENDERER_FACTORY_H_ 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_RENDERER_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // MediaStreamRendererFactory is used by WebMediaPlayerMS to create audio and 31 // MediaStreamRendererFactory is used by WebMediaPlayerMS to create audio and
32 // video feeds from a MediaStream provided an URL. 32 // video feeds from a MediaStream provided an URL.
33 // The factory methods are virtual in order for blink layouttests to be able to 33 // The factory methods are virtual in order for blink layouttests to be able to
34 // override them. 34 // override them.
35 class MediaStreamRendererFactory { 35 class MediaStreamRendererFactory {
36 public: 36 public:
37 virtual ~MediaStreamRendererFactory() {} 37 virtual ~MediaStreamRendererFactory() {}
38 38
39 // Returns a MediaStreamVideoRenderer that uses the given task runners. 39 // Returns a MediaStreamVideoRenderer that uses the given task runners.
40 // |compositor_task_runner| is used for passing video frames. 40 // |io_task_runner| is used for passing video frames.
41 // |media_task_runner|, |worker_task_runner| and |gpu_factories| are used to 41 // |media_task_runner|, |worker_task_runner| and |gpu_factories| are used to
42 // create an GpuMemoryBufferVideoFramePool instance on supported platforms. 42 // create a GpuMemoryBufferVideoFramePool instance on supported platforms.
43 virtual scoped_refptr<MediaStreamVideoRenderer> GetVideoRenderer( 43 virtual scoped_refptr<MediaStreamVideoRenderer> GetVideoRenderer(
44 const blink::WebMediaStream& web_stream, 44 const blink::WebMediaStream& web_stream,
45 const base::Closure& error_cb, 45 const base::Closure& error_cb,
46 const MediaStreamVideoRenderer::RepaintCB& repaint_cb, 46 const MediaStreamVideoRenderer::RepaintCB& repaint_cb,
47 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, 47 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner,
48 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 48 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
49 const scoped_refptr<base::TaskRunner>& worker_task_runner, 49 const scoped_refptr<base::TaskRunner>& worker_task_runner,
50 media::GpuVideoAcceleratorFactories* gpu_factories) = 0; 50 media::GpuVideoAcceleratorFactories* gpu_factories) = 0;
51 51
52 virtual scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer( 52 virtual scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
53 const blink::WebMediaStream& web_stream, 53 const blink::WebMediaStream& web_stream,
54 int render_frame_id, 54 int render_frame_id,
55 const std::string& device_id, 55 const std::string& device_id,
56 const url::Origin& security_origin) = 0; 56 const url::Origin& security_origin) = 0;
57 }; 57 };
58 58
59 } // namespace content 59 } // namespace content
60 60
61 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_RENDERER_FACTORY_H_ 61 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_RENDERER_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/media_stream_renderer_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698