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

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

Issue 1407703003: Reland: Use GpuMemoryBufferVideoFramePool for WebMediaPlayerMS and MediaStreamVideoRendererSink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 "content/public/renderer/media_stream_renderer_factory.h" 8 #include "content/public/renderer/media_stream_renderer_factory.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 class MediaStreamRendererFactoryImpl : public MediaStreamRendererFactory { 12 class MediaStreamRendererFactoryImpl : public MediaStreamRendererFactory {
13 public: 13 public:
14 MediaStreamRendererFactoryImpl(); 14 MediaStreamRendererFactoryImpl();
15 ~MediaStreamRendererFactoryImpl() override; 15 ~MediaStreamRendererFactoryImpl() override;
16 16
17 scoped_refptr<VideoFrameProvider> GetVideoFrameProvider( 17 scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
18 const GURL& url, 18 const GURL& url,
19 const base::Closure& error_cb, 19 const base::Closure& error_cb,
20 const VideoFrameProvider::RepaintCB& repaint_cb) override; 20 const VideoFrameProvider::RepaintCB& repaint_cb,
21 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
22 const scoped_refptr<base::TaskRunner>& worker_task_runner,
23 const scoped_refptr<media::GpuVideoAcceleratorFactories>& gpu_factories)
24 override;
21 25
22 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer( 26 scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
23 const GURL& url, 27 const GURL& url,
24 int render_frame_id, 28 int render_frame_id,
25 const std::string& device_id, 29 const std::string& device_id,
26 const url::Origin& security_origin) override; 30 const url::Origin& security_origin) override;
27 31
28 private: 32 private:
29 DISALLOW_COPY_AND_ASSIGN(MediaStreamRendererFactoryImpl); 33 DISALLOW_COPY_AND_ASSIGN(MediaStreamRendererFactoryImpl);
30 }; 34 };
31 35
32 } // namespace content 36 } // namespace content
33 37
34 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_ 38 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_RENDERER_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/renderer/media_stream_renderer_factory.h ('k') | content/renderer/media/media_stream_renderer_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698