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

Unified Diff: media/base/buffers.h

Issue 10228017: Add initial implementation of SourceBufferStream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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 | « no previous file | media/base/buffers.cc » ('j') | media/filters/source_buffer_stream.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/buffers.h
diff --git a/media/base/buffers.h b/media/base/buffers.h
index f4e42642b4f240ce961d987094d59e80365c5dcb..9077b7a841c3b91a8933c3036133df812254df3c 100644
--- a/media/base/buffers.h
+++ b/media/base/buffers.h
@@ -73,6 +73,13 @@ class MEDIA_EXPORT Buffer : public base::RefCountedThreadSafe<Buffer> {
duration_ = duration;
}
+ // TODO(vrk): Only ChunkDemuxer and friends care about these methods.
+ // Put these methods inside a derived class of Buffer?
+ bool IsKeyframe() const { return is_keyframe_; }
+ void SetKeyframe(bool is_keyframe) {
acolwell GONE FROM CHROMIUM 2012/04/26 00:52:34 Could we get away with just providing this info vi
vrk (LEFT CHROMIUM) 2012/04/27 23:19:30 Done, but it's a little icky since I have to add a
+ is_keyframe_ = is_keyframe;
+ }
+
protected:
friend class base::RefCountedThreadSafe<Buffer>;
Buffer(base::TimeDelta timestamp, base::TimeDelta duration);
@@ -81,6 +88,7 @@ class MEDIA_EXPORT Buffer : public base::RefCountedThreadSafe<Buffer> {
private:
base::TimeDelta timestamp_;
base::TimeDelta duration_;
+ bool is_keyframe_;
DISALLOW_COPY_AND_ASSIGN(Buffer);
};
« no previous file with comments | « no previous file | media/base/buffers.cc » ('j') | media/filters/source_buffer_stream.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698