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

Unified Diff: chromecast/media/cma/base/decoder_buffer_impl.cc

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test + android fixes Created 5 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
Index: chromecast/media/cma/base/decoder_buffer_impl.cc
diff --git a/chromecast/media/cma/base/decoder_buffer_impl.cc b/chromecast/media/cma/base/decoder_buffer_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..cee45568dd9a3ffb84f567625457846f397e13e6
--- /dev/null
+++ b/chromecast/media/cma/base/decoder_buffer_impl.cc
@@ -0,0 +1,53 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chromecast/media/cma/base/decoder_buffer_impl.h"
+
+namespace chromecast {
+namespace media {
+
+DecoderBufferImpl::DecoderBufferImpl(
+ const scoped_refptr<DecoderBufferBase>& buffer)
+ : buffer_(buffer) {}
+
+DecoderBufferImpl::~DecoderBufferImpl() {}
+
+StreamId DecoderBufferImpl::stream_id() const {
+ return buffer_->stream_id();
+}
+
+TimeDelta DecoderBufferImpl::timestamp() const {
+ return buffer_->timestamp();
+}
+
+void DecoderBufferImpl::set_timestamp(TimeDelta timestamp) {
+ buffer_->set_timestamp(timestamp);
+}
+
+const uint8* DecoderBufferImpl::data() const {
+ return buffer_->data();
+}
+
+uint8* DecoderBufferImpl::writable_data() const {
+ return buffer_->writable_data();
+}
+
+size_t DecoderBufferImpl::data_size() const {
+ return buffer_->data_size();
+}
+
+const DecryptConfig* DecoderBufferImpl::decrypt_config() const {
+ return buffer_->decrypt_config();
+}
+
+bool DecoderBufferImpl::end_of_stream() const {
+ return buffer_->end_of_stream();
+}
+
+const scoped_refptr<DecoderBufferBase>& DecoderBufferImpl::buffer() const {
+ return buffer_;
+}
+
+} // namespace media
+} // namespace chromecast

Powered by Google App Engine
This is Rietveld 408576698