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

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

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

Powered by Google App Engine
This is Rietveld 408576698