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

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

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/base/media_switches.h ('k') | media/blink/webmediaplayer_impl.h » ('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 (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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 base::FEATURE_ENABLED_BY_DEFAULT 162 base::FEATURE_ENABLED_BY_DEFAULT
163 #else 163 #else
164 base::FEATURE_DISABLED_BY_DEFAULT 164 base::FEATURE_DISABLED_BY_DEFAULT
165 #endif 165 #endif
166 }; 166 };
167 167
168 // Let video track be unselected when video is playing in the background. 168 // Let video track be unselected when video is playing in the background.
169 const base::Feature kBackgroundVideoTrackOptimization{ 169 const base::Feature kBackgroundVideoTrackOptimization{
170 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT}; 170 "BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT};
171 171
172 // Make MSE garbage collection algorithm more aggressive when we are under
173 // moderate or critical memory pressure. This will relieve memory pressure by
174 // releasing stale data from MSE buffers.
175 const base::Feature kMemoryPressureBasedSourceBufferGC{
176 "MemoryPressureBasedSourceBufferGC", base::FEATURE_DISABLED_BY_DEFAULT};
177
172 // Use shared block-based buffering for media. 178 // Use shared block-based buffering for media.
173 const base::Feature kUseNewMediaCache{"use-new-media-cache", 179 const base::Feature kUseNewMediaCache{"use-new-media-cache",
174 base::FEATURE_ENABLED_BY_DEFAULT}; 180 base::FEATURE_ENABLED_BY_DEFAULT};
175 181
176 // Correct video colors based on output display? 182 // Correct video colors based on output display?
177 const base::Feature kVideoColorManagement{"video-color-management", 183 const base::Feature kVideoColorManagement{"video-color-management",
178 base::FEATURE_DISABLED_BY_DEFAULT}; 184 base::FEATURE_DISABLED_BY_DEFAULT};
179 185
180 // Inform video blitter of video color space. 186 // Inform video blitter of video color space.
181 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy", 187 const base::Feature kVideoBlitColorAccuracy{"video-blit-color-accuracy",
182 base::FEATURE_DISABLED_BY_DEFAULT}; 188 base::FEATURE_DISABLED_BY_DEFAULT};
183 189
184 // 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
185 // 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
186 // no effect. 192 // no effect.
187 const base::Feature kExternalClearKeyForTesting{ 193 const base::Feature kExternalClearKeyForTesting{
188 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT}; 194 "external-clear-key-for-testing", base::FEATURE_DISABLED_BY_DEFAULT};
189 195
190 #if defined(OS_ANDROID) 196 #if defined(OS_ANDROID)
191 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback. 197 // Replaces WPMA by the MediaPlayerRenderer for HLS and fallback playback.
192 const base::Feature kAndroidMediaPlayerRenderer{ 198 const base::Feature kAndroidMediaPlayerRenderer{
193 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT}; 199 "android-media-player-renderer", base::FEATURE_ENABLED_BY_DEFAULT};
194 200
195 // Lock the screen orientation when a video goes fullscreen. 201 // Lock the screen orientation when a video goes fullscreen.
196 const base::Feature kVideoFullscreenOrientationLock{ 202 const base::Feature kVideoFullscreenOrientationLock{
197 "VideoFullscreenOrientationLock", base::FEATURE_ENABLED_BY_DEFAULT}; 203 "VideoFullscreenOrientationLock", base::FEATURE_ENABLED_BY_DEFAULT};
198 #endif 204 #endif
199 205
200 } // namespace media 206 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_switches.h ('k') | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698