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

Unified Diff: media/cdm/cdm_buffer_impl.cc

Issue 1673383002: Add allocator interface for use by cdm_adapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add MEDIA_CDM_EXPORT for Windows Created 4 years, 10 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/cdm/cdm_buffer_impl.h ('k') | media/cdm/cdm_helpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/cdm_buffer_impl.cc
diff --git a/media/cdm/cdm_buffer_impl.cc b/media/cdm/cdm_buffer_impl.cc
deleted file mode 100644
index 2845de4bba6593f3e93ed5fe7c346803915cb8de..0000000000000000000000000000000000000000
--- a/media/cdm/cdm_buffer_impl.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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 "media/cdm/cdm_buffer_impl.h"
-
-#include "base/logging.h"
-
-namespace media {
-
-// static
-CdmBuffer* CdmBuffer::Create(uint32_t capacity) {
- DCHECK(capacity);
- return new CdmBuffer(capacity);
-}
-
-CdmBuffer::CdmBuffer(uint32_t capacity) : buffer_(capacity), size_(0) {}
-
-CdmBuffer::~CdmBuffer() {}
-
-void CdmBuffer::Destroy() {
- delete this;
-}
-
-uint32_t CdmBuffer::Capacity() const {
- return buffer_.size();
-}
-
-uint8_t* CdmBuffer::Data() {
- return buffer_.data();
-}
-
-void CdmBuffer::SetSize(uint32_t size) {
- DCHECK(size <= Capacity());
- size_ = size > Capacity() ? 0 : size;
-}
-
-uint32_t CdmBuffer::Size() const {
- return size_;
-}
-
-} // namespace media
« no previous file with comments | « media/cdm/cdm_buffer_impl.h ('k') | media/cdm/cdm_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698