OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROMECAST_MEDIA_CMA_IPC_MEDIA_MEMORY_CHUNK_H_ | |
6 #define CHROMECAST_MEDIA_CMA_IPC_MEDIA_MEMORY_CHUNK_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 | |
10 namespace chromecast { | |
11 namespace media { | |
12 | |
13 class MediaMemoryChunk { | |
xhwang
2014/09/03 17:40:33
Add documentation.
damienv1
2014/09/03 23:59:05
Done.
| |
14 public: | |
15 virtual ~MediaMemoryChunk(); | |
16 | |
17 // Returns the start of the block of memory. | |
18 virtual void* data() const = 0; | |
19 | |
20 // Returns the size of the block of memory. | |
21 virtual size_t size() const = 0; | |
22 | |
23 // Returns whether the underlying block of memory is valid. | |
24 virtual bool valid() const = 0; | |
xhwang
2014/09/03 17:40:33
Document when this is useful.
damienv1
2014/09/03 23:59:05
Done.
| |
25 }; | |
26 | |
27 } // namespace media | |
28 } // namespace chromecast | |
29 | |
30 #endif // CHROMECAST_MEDIA_CMA_IPC_MEDIA_MEMORY_CHUNK_H_ | |
OLD | NEW |