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

Side by Side Diff: chromecast/media/cma/ipc/media_memory_chunk.h

Issue 529223003: IPC to pass media data using a lock free circular fifo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test improvement. Created 6 years, 3 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/cma/ipc/media_memory_chunk.cc » ('j') | chromecast/media/cma/ipc/media_message.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698