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

Side by Side Diff: media/blink/webmediaplayer_params.h

Issue 2605993002: Experiment with more aggressive MSE GC on memory pressure (Closed)
Patch Set: rebase/resolve conflicts Created 3 years, 10 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/blink/webmediaplayer_impl_unittest.cc ('k') | media/blink/webmediaplayer_params.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_PARAMS_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const scoped_refptr<MediaLog>& media_log, 53 const scoped_refptr<MediaLog>& media_log,
54 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 54 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
55 const scoped_refptr<base::TaskRunner>& worker_task_runner, 55 const scoped_refptr<base::TaskRunner>& worker_task_runner,
56 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, 56 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner,
57 const Context3DCB& context_3d, 57 const Context3DCB& context_3d,
58 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb, 58 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb,
59 blink::WebContentDecryptionModule* initial_cdm, 59 blink::WebContentDecryptionModule* initial_cdm,
60 SurfaceManager* surface_manager, 60 SurfaceManager* surface_manager,
61 base::WeakPtr<MediaObserver> media_observer, 61 base::WeakPtr<MediaObserver> media_observer,
62 base::TimeDelta max_keyframe_distance_to_disable_background_video, 62 base::TimeDelta max_keyframe_distance_to_disable_background_video,
63 bool enable_instant_source_buffer_gc,
63 bool allow_suspend); 64 bool allow_suspend);
64 65
65 ~WebMediaPlayerParams(); 66 ~WebMediaPlayerParams();
66 67
67 DeferLoadCB defer_load_cb() const { return defer_load_cb_; } 68 DeferLoadCB defer_load_cb() const { return defer_load_cb_; }
68 69
69 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink() 70 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink()
70 const { 71 const {
71 return audio_renderer_sink_; 72 return audio_renderer_sink_;
72 } 73 }
(...skipping 28 matching lines...) Expand all
101 SurfaceManager* surface_manager() const { return surface_manager_; } 102 SurfaceManager* surface_manager() const { return surface_manager_; }
102 103
103 base::WeakPtr<MediaObserver> media_observer() const { 104 base::WeakPtr<MediaObserver> media_observer() const {
104 return media_observer_; 105 return media_observer_;
105 } 106 }
106 107
107 base::TimeDelta max_keyframe_distance_to_disable_background_video() const { 108 base::TimeDelta max_keyframe_distance_to_disable_background_video() const {
108 return max_keyframe_distance_to_disable_background_video_; 109 return max_keyframe_distance_to_disable_background_video_;
109 } 110 }
110 111
112 bool enable_instant_source_buffer_gc() const {
113 return enable_instant_source_buffer_gc_;
114 }
115
111 bool allow_suspend() const { return allow_suspend_; } 116 bool allow_suspend() const { return allow_suspend_; }
112 117
113 private: 118 private:
114 DeferLoadCB defer_load_cb_; 119 DeferLoadCB defer_load_cb_;
115 scoped_refptr<SwitchableAudioRendererSink> audio_renderer_sink_; 120 scoped_refptr<SwitchableAudioRendererSink> audio_renderer_sink_;
116 scoped_refptr<MediaLog> media_log_; 121 scoped_refptr<MediaLog> media_log_;
117 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; 122 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
118 scoped_refptr<base::TaskRunner> worker_task_runner_; 123 scoped_refptr<base::TaskRunner> worker_task_runner_;
119 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; 124 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;
120 Context3DCB context_3d_cb_; 125 Context3DCB context_3d_cb_;
121 AdjustAllocatedMemoryCB adjust_allocated_memory_cb_; 126 AdjustAllocatedMemoryCB adjust_allocated_memory_cb_;
122 127
123 blink::WebContentDecryptionModule* initial_cdm_; 128 blink::WebContentDecryptionModule* initial_cdm_;
124 SurfaceManager* surface_manager_; 129 SurfaceManager* surface_manager_;
125 base::WeakPtr<MediaObserver> media_observer_; 130 base::WeakPtr<MediaObserver> media_observer_;
126 base::TimeDelta max_keyframe_distance_to_disable_background_video_; 131 base::TimeDelta max_keyframe_distance_to_disable_background_video_;
132 bool enable_instant_source_buffer_gc_;
127 const bool allow_suspend_; 133 const bool allow_suspend_;
128 134
129 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams); 135 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
130 }; 136 };
131 137
132 } // namespace media 138 } // namespace media
133 139
134 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_ 140 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl_unittest.cc ('k') | media/blink/webmediaplayer_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698