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

Unified Diff: content/public/common/web_preferences.h

Issue 2628313002: [Media] Plumb a feature parameter for the background video keyframe distance. (Closed)
Patch Set: 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: content/public/common/web_preferences.h
diff --git a/content/public/common/web_preferences.h b/content/public/common/web_preferences.h
index 4835144f9ff454ad268b1b4c5ec085257bcdf805..62fd756ed1514a0fceda77c3210be6f92b1b2271 100644
--- a/content/public/common/web_preferences.h
+++ b/content/public/common/web_preferences.h
@@ -263,6 +263,10 @@ struct CONTENT_EXPORT WebPreferences {
// If enabled, disabled video track when the video is in the background.
bool background_video_track_optimization_enabled;
+ // If background video track optimization is enabled, don't disable video
nasko 2017/01/13 16:30:04 nit: Keep the the style of the file and put an emp
whywhat 2017/01/13 21:10:54 Done.
+ // track for videos with the average keyframe distance greater than this
+ // value (in seconds).
+ int max_keyframe_distance_to_disable_background_video_sec;
DaleCurtis 2017/01/13 20:34:13 base::TimeDelta?
whywhat 2017/01/13 21:10:54 Hm, I've no idea if the IPC macros will handle any
// Whether it is a presentation receiver.
bool presentation_receiver;

Powered by Google App Engine
This is Rietveld 408576698