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

Side by Side Diff: content/renderer/media/media_stream_renderer_factory_impl.h

Issue 2472273002: Move passing of WebRTC rendering frames from main thread to compositor thread (Closed)
Patch Set: wez@ nits. 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_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/renderer/media_stream_renderer_factory.h" 9 #include "content/public/renderer/media_stream_renderer_factory.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class MediaStreamRendererFactoryImpl : public MediaStreamRendererFactory { 13 class MediaStreamRendererFactoryImpl : public MediaStreamRendererFactory {
14 public: 14 public:
15 MediaStreamRendererFactoryImpl(); 15 MediaStreamRendererFactoryImpl();
16 ~MediaStreamRendererFactoryImpl() override; 16 ~MediaStreamRendererFactoryImpl() override;
17 17
18 scoped_refptr<MediaStreamVideoRenderer> GetVideoRenderer( 18 scoped_refptr<MediaStreamVideoRenderer> GetVideoRenderer(
19 const blink::WebMediaStream& web_stream, 19 const blink::WebMediaStream& web_stream,
20 const base::Closure& error_cb, 20 const base::Closure& error_cb,
21 const MediaStreamVideoRenderer::RepaintCB& repaint_cb, 21 const MediaStreamVideoRenderer::RepaintCB& repaint_cb,
22 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner,
22 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 23 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
23 const scoped_refptr<base::TaskRunner>& worker_task_runner, 24 const scoped_refptr<base::TaskRunner>& worker_task_runner,
24 media::GpuVideoAcceleratorFactories* gpu_factories) override; 25 media::GpuVideoAcceleratorFactories* gpu_factories) override;
25 26
26 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer( 27 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
27 const blink::WebMediaStream& web_stream, 28 const blink::WebMediaStream& web_stream,
28 int render_frame_id, 29 int render_frame_id,
29 const std::string& device_id, 30 const std::string& device_id,
30 const url::Origin& security_origin) override; 31 const url::Origin& security_origin) override;
31 32
32 private: 33 private:
33 DISALLOW_COPY_AND_ASSIGN(MediaStreamRendererFactoryImpl); 34 DISALLOW_COPY_AND_ASSIGN(MediaStreamRendererFactoryImpl);
34 }; 35 };
35 36
36 } // namespace content 37 } // namespace content
37 38
38 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_ 39 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698