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

Unified Diff: public/platform/WebSourceBuffer.h

Issue 178763006: Enable round-tripping and updating of SourceBuffer timestamp offset (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address acolwell@'s PS2 nits so this can be committed independently of Chromium CL Created 6 years, 10 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 | « Source/modules/mediasource/SourceBuffer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebSourceBuffer.h
diff --git a/public/platform/WebSourceBuffer.h b/public/platform/WebSourceBuffer.h
index e789648be8f95d62073d2a76d7bdaf74fbe6a0c4..58e4221063c13cbe1d69b086768631f2c74325fc 100644
--- a/public/platform/WebSourceBuffer.h
+++ b/public/platform/WebSourceBuffer.h
@@ -33,6 +33,8 @@
#include "WebTimeRange.h"
+#include <limits>
wolenetz 2014/02/25 22:49:34 There's a lint error for the sequencing of header
+
namespace blink {
class WebSourceBuffer {
@@ -50,6 +52,16 @@ public:
virtual void remove(double start, double end) = 0;
virtual bool setTimestampOffset(double) = 0;
+ // Retrieve the implementation's updated timestamp offset, if any. If the
+ // implementation has not updated the offset since its construction or the
+ // last setTimestampOffset(), returns NaN instead of the actual timestamp
+ // offset. This allows caller to exactly round-trip a user-specified offset
+ // and implementation to update the offset.
+ virtual double updatedTimestampOffset()
+ {
+ return std::numeric_limits<double>::quiet_NaN();
+ }
+
// Set presentation timestamp for the start of append window.
virtual void setAppendWindowStart(double) = 0;
« no previous file with comments | « Source/modules/mediasource/SourceBuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698