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

Side by Side Diff: media/blink/webmediaplayer_impl.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 | « media/base/renderer_factory.h ('k') | media/blink/webmediaplayer_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 namespace blink { 34 namespace blink {
35 class WebGraphicsContext3D; 35 class WebGraphicsContext3D;
36 class WebLocalFrame; 36 class WebLocalFrame;
37 class WebMediaPlayerClient; 37 class WebMediaPlayerClient;
38 class WebMediaPlayerEncryptedMediaClient; 38 class WebMediaPlayerEncryptedMediaClient;
39 } 39 }
40 40
41 namespace base { 41 namespace base {
42 class SingleThreadTaskRunner; 42 class SingleThreadTaskRunner;
43 class TaskRunner;
43 } 44 }
44 45
45 namespace cc_blink { 46 namespace cc_blink {
46 class WebLayerImpl; 47 class WebLayerImpl;
47 } 48 }
48 49
49 namespace media { 50 namespace media {
50 51
51 class AudioHardwareConfig; 52 class AudioHardwareConfig;
52 class ChunkDemuxer; 53 class ChunkDemuxer;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 blink::WebMediaPlayer::ReadyState ready_state_; 240 blink::WebMediaPlayer::ReadyState ready_state_;
240 241
241 // Preload state for when |data_source_| is created after setPreload(). 242 // Preload state for when |data_source_| is created after setPreload().
242 BufferedDataSource::Preload preload_; 243 BufferedDataSource::Preload preload_;
243 244
244 // Task runner for posting tasks on Chrome's main thread. Also used 245 // Task runner for posting tasks on Chrome's main thread. Also used
245 // for DCHECKs so methods calls won't execute in the wrong thread. 246 // for DCHECKs so methods calls won't execute in the wrong thread.
246 const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 247 const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
247 248
248 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; 249 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
250 scoped_refptr<base::TaskRunner> worker_task_runner_;
249 scoped_refptr<MediaLog> media_log_; 251 scoped_refptr<MediaLog> media_log_;
250 Pipeline pipeline_; 252 Pipeline pipeline_;
251 253
252 // The LoadType passed in the |load_type| parameter of the load() call. 254 // The LoadType passed in the |load_type| parameter of the load() call.
253 LoadType load_type_; 255 LoadType load_type_;
254 256
255 // Cache of metadata for answering hasAudio(), hasVideo(), and naturalSize(). 257 // Cache of metadata for answering hasAudio(), hasVideo(), and naturalSize().
256 PipelineMetadata pipeline_metadata_; 258 PipelineMetadata pipeline_metadata_;
257 259
258 // Whether the video is known to be opaque or not. 260 // Whether the video is known to be opaque or not.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; 331 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_;
330 332
331 scoped_ptr<RendererFactory> renderer_factory_; 333 scoped_ptr<RendererFactory> renderer_factory_;
332 334
333 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 335 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
334 }; 336 };
335 337
336 } // namespace media 338 } // namespace media
337 339
338 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 340 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/renderer_factory.h ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698