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

Side by Side Diff: chromecast/renderer/media/chromecast_media_renderer_factory.h

Issue 1273943002: media: Make GpuMemoryBuffers VideoFrame copies asynchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reveman's and dalecurtis' comments. Disable GMB VideoFrames. Created 5 years, 4 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
« no previous file with comments | « no previous file | chromecast/renderer/media/chromecast_media_renderer_factory.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CHROMECAST_RENDERER_MEDIA_CHROMECAST_MEDIA_RENDERER_FACTORY_H_ 5 #ifndef CHROMECAST_RENDERER_MEDIA_CHROMECAST_MEDIA_RENDERER_FACTORY_H_
6 #define CHROMECAST_RENDERER_MEDIA_CHROMECAST_MEDIA_RENDERER_FACTORY_H_ 6 #define CHROMECAST_RENDERER_MEDIA_CHROMECAST_MEDIA_RENDERER_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/renderer_factory.h" 10 #include "media/base/renderer_factory.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 ChromecastMediaRendererFactory( 24 ChromecastMediaRendererFactory(
25 const scoped_refptr<::media::GpuVideoAcceleratorFactories>& gpu_factories, 25 const scoped_refptr<::media::GpuVideoAcceleratorFactories>& gpu_factories,
26 const scoped_refptr<::media::MediaLog>& media_log, 26 const scoped_refptr<::media::MediaLog>& media_log,
27 int render_frame_id); 27 int render_frame_id);
28 ~ChromecastMediaRendererFactory() final; 28 ~ChromecastMediaRendererFactory() final;
29 29
30 // ::media::RendererFactory implementation. 30 // ::media::RendererFactory implementation.
31 scoped_ptr<::media::Renderer> CreateRenderer( 31 scoped_ptr<::media::Renderer> CreateRenderer(
32 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 32 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
33 const scoped_refptr<base::TaskRunner>& worker_task_runner,
33 ::media::AudioRendererSink* audio_renderer_sink, 34 ::media::AudioRendererSink* audio_renderer_sink,
34 ::media::VideoRendererSink* video_renderer_sink) final; 35 ::media::VideoRendererSink* video_renderer_sink) final;
35 36
36 private: 37 private:
37 int render_frame_id_; 38 int render_frame_id_;
38 scoped_refptr<::media::GpuVideoAcceleratorFactories> gpu_factories_; 39 scoped_refptr<::media::GpuVideoAcceleratorFactories> gpu_factories_;
39 scoped_refptr<::media::MediaLog> media_log_; 40 scoped_refptr<::media::MediaLog> media_log_;
40 scoped_ptr<::media::DefaultRendererFactory> default_render_factory_; 41 scoped_ptr<::media::DefaultRendererFactory> default_render_factory_;
41 42
42 // Audio config for the default media renderer. 43 // Audio config for the default media renderer.
43 scoped_ptr<::media::AudioHardwareConfig> audio_config_; 44 scoped_ptr<::media::AudioHardwareConfig> audio_config_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(ChromecastMediaRendererFactory); 46 DISALLOW_COPY_AND_ASSIGN(ChromecastMediaRendererFactory);
46 }; 47 };
47 48
48 } // namespace media 49 } // namespace media
49 } // namespace chromecast 50 } // namespace chromecast
50 51
51 #endif // CHROMECAST_RENDERER_MEDIA_CHROMECAST_MEDIA_RENDERER_FACTORY_H_ 52 #endif // CHROMECAST_RENDERER_MEDIA_CHROMECAST_MEDIA_RENDERER_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/renderer/media/chromecast_media_renderer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698