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

Side by Side Diff: media/base/buffers.h

Issue 5574006: Start deinlining non-empty virtual methods. (This will be automatically checked (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove virtual from VideoFrame::type() Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/worker/worker_webapplicationcachehost_impl.cc ('k') | media/base/buffers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Defines various types of timestamped media buffers used for transporting 5 // Defines various types of timestamped media buffers used for transporting
6 // data between filters. Every buffer contains a timestamp in microseconds 6 // data between filters. Every buffer contains a timestamp in microseconds
7 // describing the relative position of the buffer within the media stream, and 7 // describing the relative position of the buffer within the media stream, and
8 // the duration in microseconds for the length of time the buffer will be 8 // the duration in microseconds for the length of time the buffer will be
9 // rendered. 9 // rendered.
10 // 10 //
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 class Buffer : public StreamSample { 79 class Buffer : public StreamSample {
80 public: 80 public:
81 // Returns a read only pointer to the buffer data. 81 // Returns a read only pointer to the buffer data.
82 virtual const uint8* GetData() const = 0; 82 virtual const uint8* GetData() const = 0;
83 83
84 // Returns the size of valid data in bytes. 84 // Returns the size of valid data in bytes.
85 virtual size_t GetDataSize() const = 0; 85 virtual size_t GetDataSize() const = 0;
86 86
87 // If there's no data in this buffer, it represents end of stream. 87 // If there's no data in this buffer, it represents end of stream.
88 virtual bool IsEndOfStream() const { return GetData() == NULL; } 88 virtual bool IsEndOfStream() const;
89 89
90 protected: 90 protected:
91 virtual ~Buffer() {} 91 virtual ~Buffer() {}
92 }; 92 };
93 93
94 } // namespace media 94 } // namespace media
95 95
96 #endif // MEDIA_BASE_BUFFERS_H_ 96 #endif // MEDIA_BASE_BUFFERS_H_
OLDNEW
« no previous file with comments | « chrome/worker/worker_webapplicationcachehost_impl.cc ('k') | media/base/buffers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698