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

Unified Diff: media/blink/webmediaplayer_impl.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/base/video_renderer.h ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index 16f3bbdbec91f6973d68da6e9dcb52e15f4c662f..4b5a69bb1305fa57d4aa72583935ee27e2052279 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -24,6 +24,7 @@
#include "media/base/media_tracks.h"
#include "media/base/pipeline_impl.h"
#include "media/base/renderer_factory.h"
+#include "media/base/stream_position.h"
#include "media/base/surface_manager.h"
#include "media/base/text_track.h"
#include "media/blink/buffered_data_source_host_impl.h"
@@ -107,6 +108,7 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
void pause() override;
bool supportsSave() const override;
void seek(double seconds) override;
+ void fastSeek(double seconds);
void setRate(double rate) override;
void setVolume(double volume) override;
void setSinkId(const blink::WebString& sink_id,
@@ -251,7 +253,7 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
// Actually seek. Avoids causing |should_notify_time_changed_| to be set when
// |time_updated| is false.
- void DoSeek(base::TimeDelta time, bool time_updated);
+ void DoSeek(StreamPosition position, bool time_updated);
// Ask for the renderer to be restarted (destructed and recreated).
void ScheduleRestart();
« no previous file with comments | « media/base/video_renderer.h ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698