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

Side by Side Diff: chromecast/media/cma/base/decoder_buffer_adapter.cc

Issue 1145163005: Add set_timestamp to cma's DecoderBufferBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chromecast/media/cma/base/decoder_buffer_adapter.h" 5 #include "chromecast/media/cma/base/decoder_buffer_adapter.h"
6 6
7 #include "media/base/decoder_buffer.h" 7 #include "media/base/decoder_buffer.h"
8 8
9 namespace chromecast { 9 namespace chromecast {
10 namespace media { 10 namespace media {
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 StreamId DecoderBufferAdapter::stream_id() const { 26 StreamId DecoderBufferAdapter::stream_id() const {
27 return stream_id_; 27 return stream_id_;
28 } 28 }
29 29
30 base::TimeDelta DecoderBufferAdapter::timestamp() const { 30 base::TimeDelta DecoderBufferAdapter::timestamp() const {
31 return buffer_->timestamp(); 31 return buffer_->timestamp();
32 } 32 }
33 33
34 void DecoderBufferAdapter::set_timestamp(const base::TimeDelta& timestamp) {
35 buffer_->set_timestamp(timestamp);
36 }
37
34 const uint8* DecoderBufferAdapter::data() const { 38 const uint8* DecoderBufferAdapter::data() const {
35 return buffer_->data(); 39 return buffer_->data();
36 } 40 }
37 41
38 uint8* DecoderBufferAdapter::writable_data() const { 42 uint8* DecoderBufferAdapter::writable_data() const {
39 return buffer_->writable_data(); 43 return buffer_->writable_data();
40 } 44 }
41 45
42 size_t DecoderBufferAdapter::data_size() const { 46 size_t DecoderBufferAdapter::data_size() const {
43 return buffer_->data_size(); 47 return buffer_->data_size();
44 } 48 }
45 49
46 const ::media::DecryptConfig* DecoderBufferAdapter::decrypt_config() const { 50 const ::media::DecryptConfig* DecoderBufferAdapter::decrypt_config() const {
47 return buffer_->decrypt_config(); 51 return buffer_->decrypt_config();
48 } 52 }
49 53
50 bool DecoderBufferAdapter::end_of_stream() const { 54 bool DecoderBufferAdapter::end_of_stream() const {
51 return buffer_->end_of_stream(); 55 return buffer_->end_of_stream();
52 } 56 }
53 57
54 } // namespace media 58 } // namespace media
55 } // namespace chromecast 59 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698