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

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

Issue 2605993002: Experiment with more aggressive MSE GC on memory pressure (Closed)
Patch Set: nits 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 // Make MSE garbage collection algorithm more aggressive when we are under
168 // moderate or critical memory pressure. This will relieve memory pressure by
169 // releasing stale data from MSE buffers.
170 const base::Feature kMemoryPressureBasedSourceBufferGC{
171 "MemoryPressureBasedSourceBufferGC", base::FEATURE_DISABLED_BY_DEFAULT};
172
167 // Use shared block-based buffering for media. 173 // Use shared block-based buffering for media.
168 const base::Feature kUseNewMediaCache{"use-new-media-cache", 174 const base::Feature kUseNewMediaCache{"use-new-media-cache",
169 base::FEATURE_ENABLED_BY_DEFAULT}; 175 base::FEATURE_ENABLED_BY_DEFAULT};
170 176
171 // Correct video colors based on output display? 177 // Correct video colors based on output display?
172 const base::Feature kVideoColorManagement{"video-color-management", 178 const base::Feature kVideoColorManagement{"video-color-management",
173 base::FEATURE_DISABLED_BY_DEFAULT}; 179 base::FEATURE_DISABLED_BY_DEFAULT};
174 180
175 // Inform video blitter of video color space. 181 // Inform video blitter of video color space.
176 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy", 182 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy",
177 base::FEATURE_DISABLED_BY_DEFAULT}; 183 base::FEATURE_DISABLED_BY_DEFAULT};
178 184
179 // Enables support for External Clear Key (ECK) key system for testing on 185 // 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 186 // supported platforms. On platforms that do not support ECK, this feature has
181 // no effect. 187 // no effect.
182 const base::Feature kExternalClearKeyForTesting{ 188 const base::Feature kExternalClearKeyForTesting{
183 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; 189 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT};
184 190
185 #if defined(OS_ANDROID) 191 #if defined(OS_ANDROID)
186 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. 192 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback.
187 const base::Feature kAndroidMediaPlayerRenderer{ 193 const base::Feature kAndroidMediaPlayerRenderer{
188 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT}; 194 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT};
189 195
190 // Lock the screen orientation when a video goes fullscreen. 196 // Lock the screen orientation when a video goes fullscreen.
191 const base::Feature kVideoFullscreenOrientationLock{ 197 const base::Feature kVideoFullscreenOrientationLock{
192 "VideoFullscreenOrientationLock", base::FEATURE_ENABLED_BY_DEFAULT}; 198 "VideoFullscreenOrientationLock", base::FEATURE_ENABLED_BY_DEFAULT};
193 #endif 199 #endif
194 200
195 } // namespace media 201 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698