OLD | NEW |
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 #include "media/blink/webmediaplayer_params.h" | 5 #include "media/blink/webmediaplayer_params.h" |
6 | 6 |
7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
8 #include "base/task_runner.h" | 8 #include "base/task_runner.h" |
9 #include "media/base/audio_renderer_sink.h" | 9 #include "media/base/audio_renderer_sink.h" |
10 #include "media/base/media_log.h" | 10 #include "media/base/media_log.h" |
11 | 11 |
12 namespace media { | 12 namespace media { |
13 | 13 |
14 WebMediaPlayerParams::WebMediaPlayerParams( | 14 WebMediaPlayerParams::WebMediaPlayerParams( |
15 const DeferLoadCB& defer_load_cb, | 15 const DeferLoadCB& defer_load_cb, |
16 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink, | 16 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink, |
17 const scoped_refptr<MediaLog>& media_log, | 17 const scoped_refptr<MediaLog>& media_log, |
18 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, | 18 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, |
19 const scoped_refptr<base::TaskRunner>& worker_task_runner, | 19 const scoped_refptr<base::TaskRunner>& worker_task_runner, |
20 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, | 20 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, |
21 const Context3DCB& context_3d_cb, | 21 const Context3DCB& context_3d_cb, |
22 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb, | 22 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb, |
23 blink::WebContentDecryptionModule* initial_cdm, | 23 blink::WebContentDecryptionModule* initial_cdm, |
24 SurfaceManager* surface_manager, | 24 SurfaceManager* surface_manager, |
25 base::WeakPtr<MediaObserver> media_observer, | 25 base::WeakPtr<MediaObserver> media_observer, |
26 base::TimeDelta max_keyframe_distance_to_disable_background_video, | 26 base::TimeDelta max_keyframe_distance_to_disable_background_video, |
| 27 base::TimeDelta max_keyframe_distance_to_disable_background_video_mse, |
27 bool enable_instant_source_buffer_gc, | 28 bool enable_instant_source_buffer_gc, |
28 bool allow_suspend, | 29 bool allow_suspend, |
29 bool embedded_media_experience_enabled) | 30 bool embedded_media_experience_enabled) |
30 : defer_load_cb_(defer_load_cb), | 31 : defer_load_cb_(defer_load_cb), |
31 audio_renderer_sink_(audio_renderer_sink), | 32 audio_renderer_sink_(audio_renderer_sink), |
32 media_log_(media_log), | 33 media_log_(media_log), |
33 media_task_runner_(media_task_runner), | 34 media_task_runner_(media_task_runner), |
34 worker_task_runner_(worker_task_runner), | 35 worker_task_runner_(worker_task_runner), |
35 compositor_task_runner_(compositor_task_runner), | 36 compositor_task_runner_(compositor_task_runner), |
36 context_3d_cb_(context_3d_cb), | 37 context_3d_cb_(context_3d_cb), |
37 adjust_allocated_memory_cb_(adjust_allocated_memory_cb), | 38 adjust_allocated_memory_cb_(adjust_allocated_memory_cb), |
38 initial_cdm_(initial_cdm), | 39 initial_cdm_(initial_cdm), |
39 surface_manager_(surface_manager), | 40 surface_manager_(surface_manager), |
40 media_observer_(media_observer), | 41 media_observer_(media_observer), |
41 max_keyframe_distance_to_disable_background_video_( | 42 max_keyframe_distance_to_disable_background_video_( |
42 max_keyframe_distance_to_disable_background_video), | 43 max_keyframe_distance_to_disable_background_video), |
| 44 max_keyframe_distance_to_disable_background_video_mse_( |
| 45 max_keyframe_distance_to_disable_background_video_mse), |
43 enable_instant_source_buffer_gc_(enable_instant_source_buffer_gc), | 46 enable_instant_source_buffer_gc_(enable_instant_source_buffer_gc), |
44 allow_suspend_(allow_suspend), | 47 allow_suspend_(allow_suspend), |
45 embedded_media_experience_enabled_(embedded_media_experience_enabled) {} | 48 embedded_media_experience_enabled_(embedded_media_experience_enabled) {} |
46 | 49 |
47 WebMediaPlayerParams::~WebMediaPlayerParams() {} | 50 WebMediaPlayerParams::~WebMediaPlayerParams() {} |
48 | 51 |
49 } // namespace media | 52 } // namespace media |
OLD | NEW |