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

Side by Side Diff: media/base/media_switches.cc

Issue 2605993002: Experiment with more aggressive MSE GC on memory pressure (Closed)
Patch Set: typo Created 3 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "media/base/media_switches.h" 6 #include "media/base/media_switches.h"
7 #include "ppapi/features/features.h" 7 #include "ppapi/features/features.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 base::FEATURE_ENABLED_BY_DEFAULT 157 base::FEATURE_ENABLED_BY_DEFAULT
158 #else 158 #else
159 base::FEATURE_DISABLED_BY_DEFAULT 159 base::FEATURE_DISABLED_BY_DEFAULT
160 #endif 160 #endif
161 }; 161 };
162 162
163 // Let video track be unselected when video is playing in the background. 163 // Let video track be unselected when video is playing in the background.
164 const base::Feature kBackgroundVideoTrackOptimization{ 164 const base::Feature kBackgroundVideoTrackOptimization{
165 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; 165 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT};
166 166
167 // Reduce memory limits for MSE SourceBuffers under memory pressure conditions.
DaleCurtis 2017/01/26 19:24:50 Probably would be easier to have a single feature
servolk 2017/01/26 19:38:31 IIUC the base::Feature is only binary (enabled/dis
DaleCurtis 2017/01/26 19:48:33 Sure it's binary only, but you can use variations
168 // This will relieve memory pressure by releasing stale data from MSE buffers.
169 const base::Feature kReduceMSEBuffersOnMemoryPressure{
170 "ReduceMSEBuffersOnMemoryPressure", base::FEATURE_DISABLED_BY_DEFAULT};
171
172 // Perform MSE garbage collection immediately when we get notification about
173 // critical memory pressure, instead of waiting for the next SourceBuffer append
174 // operation.
175 const base::Feature kMSEInstantGCOnMemoryPressure{
176 "MSEInstantGCOnMemoryPressure", base::FEATURE_DISABLED_BY_DEFAULT};
177
167 // Use shared block-based buffering for media. 178 // Use shared block-based buffering for media.
168 const base::Feature kUseNewMediaCache{"use-new-media-cache", 179 const base::Feature kUseNewMediaCache{"use-new-media-cache",
169 base::FEATURE_ENABLED_BY_DEFAULT}; 180 base::FEATURE_ENABLED_BY_DEFAULT};
170 181
171 // Correct video colors based on output display? 182 // Correct video colors based on output display?
172 const base::Feature kVideoColorManagement{"video-color-management", 183 const base::Feature kVideoColorManagement{"video-color-management",
173 base::FEATURE_DISABLED_BY_DEFAULT}; 184 base::FEATURE_DISABLED_BY_DEFAULT};
174 185
175 // Inform video blitter of video color space. 186 // Inform video blitter of video color space.
176 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy", 187 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy",
177 base::FEATURE_DISABLED_BY_DEFAULT}; 188 base::FEATURE_DISABLED_BY_DEFAULT};
178 189
179 // Enables support for External Clear Key (ECK) key system for testing on 190 // Enables support for External Clear Key (ECK) key system for testing on
180 // supported platforms. On platforms that do not support ECK, this feature has 191 // supported platforms. On platforms that do not support ECK, this feature has
181 // no effect. 192 // no effect.
182 const base::Feature kExternalClearKeyForTesting{ 193 const base::Feature kExternalClearKeyForTesting{
183 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; 194 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT};
184 195
185 #if defined(OS_ANDROID) 196 #if defined(OS_ANDROID)
186 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. 197 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback.
187 const base::Feature kAndroidMediaPlayerRenderer{ 198 const base::Feature kAndroidMediaPlayerRenderer{
188 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT}; 199 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT};
189 200
190 // Lock the screen orientation when a video goes fullscreen. 201 // Lock the screen orientation when a video goes fullscreen.
191 const base::Feature kVideoFullscreenOrientationLock{ 202 const base::Feature kVideoFullscreenOrientationLock{
192 "VideoFullscreenOrientationLock", base::FEATURE_ENABLED_BY_DEFAULT}; 203 "VideoFullscreenOrientationLock", base::FEATURE_ENABLED_BY_DEFAULT};
193 #endif 204 #endif
194 205
195 } // namespace media 206 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698