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

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

Issue 2628313002: [Media] Plumb a feature parameter for the background video keyframe distance. (Closed)
Patch Set: Changed the param to milliseconds 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
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9bcda9e87dee064796afa827bf34f6ec94e92085 100644
--- a/content/public/common/web_preferences.h
+++ b/content/public/common/web_preferences.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/strings/string16.h"
+#include "base/time/time.h"
#include "build/build_config.h"
#include "content/common/content_export.h"
#include "ui/base/touch/touch_device.h"
@@ -264,6 +265,13 @@ 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
+ // track for videos with the average keyframe distance greater than this
+ // value.
+ // TODO(avayvod, asvitkine): Query the value directly when it is available in
+ // the renderer process. See https://crbug.com/681160.
+ base::TimeDelta max_keyframe_distance_to_disable_background_video;
+
// Whether it is a presentation receiver.
bool presentation_receiver;
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698