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

Unified Diff: media/base/data_buffer.cc

Issue 27120: Added IsEndOfStream and IsDiscontiguous flags to buffers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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/base/data_buffer.h ('k') | media/base/data_buffer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/data_buffer.cc
===================================================================
--- media/base/data_buffer.cc (revision 10301)
+++ media/base/data_buffer.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2008-2009 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.
@@ -12,34 +12,18 @@
const base::TimeDelta& duration)
: data_(data),
buffer_size_(buffer_size),
- data_size_(data_size),
- timestamp_(timestamp),
- duration_(duration) {
+ data_size_(data_size) {
DCHECK(data);
DCHECK(buffer_size >= 0);
DCHECK(data_size <= buffer_size);
+ SetTimestamp(timestamp);
+ SetDuration(duration);
}
DataBuffer::~DataBuffer() {
delete [] data_;
}
-base::TimeDelta DataBuffer::GetTimestamp() const {
- return timestamp_;
-}
-
-void DataBuffer::SetTimestamp(const base::TimeDelta& timestamp) {
- timestamp_ = timestamp;
-}
-
-base::TimeDelta DataBuffer::GetDuration() const {
- return duration_;
-}
-
-void DataBuffer::SetDuration(const base::TimeDelta& duration) {
- duration_ = duration;
-}
-
const char* DataBuffer::GetData() const {
return data_;
}
« no previous file with comments | « media/base/data_buffer.h ('k') | media/base/data_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698