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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/ipc/media_memory_chunk.h
diff --git a/chromecast/media/cma/ipc/media_memory_chunk.h b/chromecast/media/cma/ipc/media_memory_chunk.h
new file mode 100644
index 0000000000000000000000000000000000000000..de19de8534fece34d9c06672b1fed06cd6e7bf07
--- /dev/null
+++ b/chromecast/media/cma/ipc/media_memory_chunk.h
@@ -0,0 +1,30 @@
+// Copyright 2014 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.
+
+#ifndef CHROMECAST_MEDIA_CMA_IPC_MEDIA_MEMORY_CHUNK_H_
+#define CHROMECAST_MEDIA_CMA_IPC_MEDIA_MEMORY_CHUNK_H_
+
+#include "base/basictypes.h"
+
+namespace chromecast {
+namespace media {
+
+class MediaMemoryChunk {
xhwang 2014/09/03 17:40:33 Add documentation.
damienv1 2014/09/03 23:59:05 Done.
+ public:
+ virtual ~MediaMemoryChunk();
+
+ // Returns the start of the block of memory.
+ virtual void* data() const = 0;
+
+ // Returns the size of the block of memory.
+ virtual size_t size() const = 0;
+
+ // Returns whether the underlying block of memory is valid.
+ 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.
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_IPC_MEDIA_MEMORY_CHUNK_H_
« 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