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

Unified Diff: media/base/renderer.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/pipeline_impl.cc ('k') | media/base/renderer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/renderer.h
diff --git a/media/base/renderer.h b/media/base/renderer.h
index 190cc380a38f977c1bc28d81be87090829a06036..b5af07583a5c7c5f5413f14eb43ddfc63088e23c 100644
--- a/media/base/renderer.h
+++ b/media/base/renderer.h
@@ -13,6 +13,7 @@
#include "media/base/cdm_context.h"
#include "media/base/media_export.h"
#include "media/base/pipeline_status.h"
+#include "media/base/stream_position.h"
namespace media {
@@ -46,10 +47,10 @@ class MEDIA_EXPORT Renderer {
// Discards any buffered data, executing |flush_cb| when completed.
virtual void Flush(const base::Closure& flush_cb) = 0;
- // Starts rendering from |time|.
- virtual void StartPlayingFrom(base::TimeDelta time) = 0;
+ // Starts rendering from |position|.
+ virtual void StartPlayingFrom(StreamPosition position) = 0;
- // Updates the current playback rate. The default playback rate should be 0.
+ // Updates the current playback rate. The default playback rate should be 1.
virtual void SetPlaybackRate(double playback_rate) = 0;
// Sets the output volume. The default volume should be 1.
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/base/renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698