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

Unified Diff: media/filters/pipeline_controller.h

Issue 2366373003: Not for submission. fastSeek prototype. (Closed)
Patch Set: Created 4 years, 3 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.cc ('k') | media/filters/pipeline_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/pipeline_controller.h
diff --git a/media/filters/pipeline_controller.h b/media/filters/pipeline_controller.h
index 4c2a70f7f8e55c90b41515416d325527728b549b..16a0ddf2f543409f85391330ebdac26fcb87c6c4 100644
--- a/media/filters/pipeline_controller.h
+++ b/media/filters/pipeline_controller.h
@@ -13,6 +13,8 @@
#include "media/base/media_export.h"
#include "media/base/pipeline.h"
#include "media/base/renderer.h"
+#include "media/base/renderer.h"
+#include "media/base/stream_position.h"
namespace media {
@@ -77,7 +79,7 @@ class MEDIA_EXPORT PipelineController {
// |seeked_cb| callback will also have |time_updated| set to true; it
// indicates that the seek was requested by Blink and a time update is
// expected so that Blink can fire the seeked event.
- void Seek(base::TimeDelta time, bool time_updated);
+ void Seek(StreamPosition position, bool time_updated);
// Request that |pipeline_| be suspended. This is a no-op if |pipeline_| has
// been suspended.
@@ -149,12 +151,12 @@ class MEDIA_EXPORT PipelineController {
bool pending_time_updated_ = false;
// The target time of the active seek; valid while SEEKING or RESUMING.
- base::TimeDelta seek_time_;
+ StreamPosition seek_position_;
// Target state which we will work to achieve. |pending_seek_time_| is only
// valid when |pending_seek_| is true.
bool pending_seek_ = false;
- base::TimeDelta pending_seek_time_;
+ StreamPosition pending_seek_position_;
bool pending_suspend_ = false;
bool pending_resume_ = false;
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/filters/pipeline_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698