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

Unified Diff: media/base/decoder_buffer_queue.cc

Issue 17408005: Refactored DecoderBuffer to use unix_hacker_style naming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@localrefactor
Patch Set: Created 7 years, 5 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/decoder_buffer.cc ('k') | media/base/decoder_buffer_queue_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/decoder_buffer_queue.cc
diff --git a/media/base/decoder_buffer_queue.cc b/media/base/decoder_buffer_queue.cc
index 8d317c0cb607d8b2b4a68221844c0f22792aaec9..d0486cbf93965932bcbf7108f24cd947f79c499c 100644
--- a/media/base/decoder_buffer_queue.cc
+++ b/media/base/decoder_buffer_queue.cc
@@ -17,31 +17,31 @@ DecoderBufferQueue::DecoderBufferQueue()
DecoderBufferQueue::~DecoderBufferQueue() {}
void DecoderBufferQueue::Push(const scoped_refptr<DecoderBuffer>& buffer) {
- CHECK(!buffer->IsEndOfStream());
+ CHECK(!buffer->end_of_stream());
queue_.push_back(buffer);
// TODO(scherkus): FFmpeg returns some packets with no timestamp after
// seeking. Fix and turn this into CHECK(). See http://crbug.com/162192
- if (buffer->GetTimestamp() == kNoTimestamp()) {
+ if (buffer->timestamp() == kNoTimestamp()) {
DVLOG(1) << "Buffer has no timestamp";
return;
}
if (earliest_valid_timestamp_ == kNoTimestamp()) {
- earliest_valid_timestamp_ = buffer->GetTimestamp();
+ earliest_valid_timestamp_ = buffer->timestamp();
}
- if (buffer->GetTimestamp() < earliest_valid_timestamp_) {
+ if (buffer->timestamp() < earliest_valid_timestamp_) {
DVLOG(1)
<< "Out of order timestamps: "
- << buffer->GetTimestamp().InMicroseconds()
+ << buffer->timestamp().InMicroseconds()
<< " vs. "
<< earliest_valid_timestamp_.InMicroseconds();
return;
}
- earliest_valid_timestamp_ = buffer->GetTimestamp();
+ earliest_valid_timestamp_ = buffer->timestamp();
in_order_queue_.push_back(buffer);
}
@@ -71,8 +71,8 @@ base::TimeDelta DecoderBufferQueue::Duration() {
if (in_order_queue_.size() < 2)
return base::TimeDelta();
- base::TimeDelta start = in_order_queue_.front()->GetTimestamp();
- base::TimeDelta end = in_order_queue_.back()->GetTimestamp();
+ base::TimeDelta start = in_order_queue_.front()->timestamp();
+ base::TimeDelta end = in_order_queue_.back()->timestamp();
return end - start;
}
« no previous file with comments | « media/base/decoder_buffer.cc ('k') | media/base/decoder_buffer_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698