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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: media/base/media_switches.cc
diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc
index 5299efe7794b19241204fbc1ecaf68ee281732eb..403b183f8aefcb823f5e81531eeb19c5cff9392b 100644
--- a/media/base/media_switches.cc
+++ b/media/base/media_switches.cc
@@ -164,6 +164,11 @@ const base::Feature kResumeBackgroundVideo {
const base::Feature kBackgroundVideoTrackOptimization{
"BackgroundVideoTrackOptimization", base::FEATURE_DISABLED_BY_DEFAULT};
+// Reduce memory limits for MSE SourceBuffers under memory pressure conditions.
+// This will relieve memory pressure by releasing stale data from MSE buffers.
+const base::Feature kReduceMSEBuffersOnMemoryPressure{
+ "ReduceMSEBuffersOnMemoryPressure", base::FEATURE_DISABLED_BY_DEFAULT};
+
// Use shared block-based buffering for media.
const base::Feature kUseNewMediaCache{"use-new-media-cache",
base::FEATURE_ENABLED_BY_DEFAULT};

Powered by Google App Engine
This is Rietveld 408576698