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

Side by Side Diff: media/base/android/demuxer_android.h

Issue 196133020: Reducing the IPC latency for MSE video decoding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_ANDROID_DEMUXER_ANDROID_H_ 5 #ifndef MEDIA_BASE_ANDROID_DEMUXER_ANDROID_H_
6 #define MEDIA_BASE_ANDROID_DEMUXER_ANDROID_H_ 6 #define MEDIA_BASE_ANDROID_DEMUXER_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "media/base/demuxer_stream.h" 10 #include "media/base/demuxer_stream.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Called in response to RequestDemuxerData(). 55 // Called in response to RequestDemuxerData().
56 virtual void OnDemuxerDataAvailable(const DemuxerData& params) = 0; 56 virtual void OnDemuxerDataAvailable(const DemuxerData& params) = 0;
57 57
58 // Called in response to RequestDemuxerSeek(). 58 // Called in response to RequestDemuxerSeek().
59 // If this is in response to a request with |is_browser_seek| set to true, 59 // If this is in response to a request with |is_browser_seek| set to true,
60 // then |actual_browser_seek_time| may differ from the requested 60 // then |actual_browser_seek_time| may differ from the requested
61 // |time_to_seek|, and reflects the actual time seeked to by the demuxer. 61 // |time_to_seek|, and reflects the actual time seeked to by the demuxer.
62 // For regular demuxer seeks, |actual_browser_seek_time| is kNoTimestamp() and 62 // For regular demuxer seeks, |actual_browser_seek_time| is kNoTimestamp() and
63 // should be ignored by browser player. 63 // should be ignored by browser player.
64 virtual void OnDemuxerSeekDone( 64 virtual void OnDemuxerSeekDone(
65 const base::TimeDelta& actual_browser_seek_time) = 0; 65 base::TimeDelta actual_browser_seek_time) = 0;
66 66
67 // Called whenever the demuxer has detected a duration change. 67 // Called whenever the demuxer has detected a duration change.
68 virtual void OnDemuxerDurationChanged(base::TimeDelta duration) = 0; 68 virtual void OnDemuxerDurationChanged(base::TimeDelta duration) = 0;
69 69
70 protected: 70 protected:
71 virtual ~DemuxerAndroidClient() {} 71 virtual ~DemuxerAndroidClient() {}
72 }; 72 };
73 73
74 } // namespace media 74 } // namespace media
75 75
76 #endif // MEDIA_BASE_ANDROID_DEMUXER_ANDROID_H_ 76 #endif // MEDIA_BASE_ANDROID_DEMUXER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698