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

Unified Diff: media/blink/webmediaplayer_params.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 | « media/blink/webmediaplayer_impl_unittest.cc ('k') | media/blink/webmediaplayer_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_params.h
diff --git a/media/blink/webmediaplayer_params.h b/media/blink/webmediaplayer_params.h
index 82aed3b6354916166715666ec68654df509f7469..54ab539d05d6f9b6b3bb475e0ab624d004ef1854 100644
--- a/media/blink/webmediaplayer_params.h
+++ b/media/blink/webmediaplayer_params.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "base/time/time.h"
#include "media/base/media_observer.h"
#include "media/blink/media_blink_export.h"
#include "media/filters/context_3d.h"
@@ -57,7 +58,8 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb,
blink::WebContentDecryptionModule* initial_cdm,
SurfaceManager* surface_manager,
- base::WeakPtr<MediaObserver> media_observer);
+ base::WeakPtr<MediaObserver> media_observer,
+ base::TimeDelta max_keyframe_distance_to_disable_background_video);
~WebMediaPlayerParams();
@@ -101,6 +103,10 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
return media_observer_;
}
+ base::TimeDelta max_keyframe_distance_to_disable_background_video() const {
+ return max_keyframe_distance_to_disable_background_video_;
+ }
+
private:
DeferLoadCB defer_load_cb_;
scoped_refptr<SwitchableAudioRendererSink> audio_renderer_sink_;
@@ -114,6 +120,7 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
blink::WebContentDecryptionModule* initial_cdm_;
SurfaceManager* surface_manager_;
base::WeakPtr<MediaObserver> media_observer_;
+ base::TimeDelta max_keyframe_distance_to_disable_background_video_;
DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
};
« no previous file with comments | « media/blink/webmediaplayer_impl_unittest.cc ('k') | media/blink/webmediaplayer_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698