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

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

Issue 2472273002: Move passing of WebRTC rendering frames from main thread to compositor thread (Closed)
Patch Set: perkj@ and qiangchen@ comments. Created 4 years, 1 month 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
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 18 matching lines...) Expand all
29 namespace content { 29 namespace content {
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 virtual scoped_refptr<MediaStreamVideoRenderer> GetVideoRenderer( 39 virtual scoped_refptr<MediaStreamVideoRenderer> GetVideoRenderer(
perkj_chrome 2016/11/14 15:19:55 Can you add documentation on what all these task r
emircan 2016/11/14 22:43:32 Done.
40 const blink::WebMediaStream& web_stream, 40 const blink::WebMediaStream& web_stream,
41 const base::Closure& error_cb, 41 const base::Closure& error_cb,
42 const MediaStreamVideoRenderer::RepaintCB& repaint_cb, 42 const MediaStreamVideoRenderer::RepaintCB& repaint_cb,
43 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner,
43 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 44 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
44 const scoped_refptr<base::TaskRunner>& worker_task_runner, 45 const scoped_refptr<base::TaskRunner>& worker_task_runner,
45 media::GpuVideoAcceleratorFactories* gpu_factories) = 0; 46 media::GpuVideoAcceleratorFactories* gpu_factories) = 0;
46 47
47 virtual scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer( 48 virtual scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
48 const blink::WebMediaStream& web_stream, 49 const blink::WebMediaStream& web_stream,
49 int render_frame_id, 50 int render_frame_id,
50 const std::string& device_id, 51 const std::string& device_id,
51 const url::Origin& security_origin) = 0; 52 const url::Origin& security_origin) = 0;
52 }; 53 };
53 54
54 } // namespace content 55 } // namespace content
55 56
56 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_RENDERER_FACTORY_H_ 57 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_RENDERER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698