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

Unified Diff: chromecast/media/cma/ipc/media_message_fifo.h

Issue 1137263002: Chromecast: adds CmaRenderer test coverage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert chromium.fyi.json change Created 5 years, 7 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 | « chromecast/chromecast_tests.gypi ('k') | chromecast/renderer/media/cma_renderer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/ipc/media_message_fifo.h
diff --git a/chromecast/media/cma/ipc/media_message_fifo.h b/chromecast/media/cma/ipc/media_message_fifo.h
index af0181de0134b33fb1e94d6878a16e5058d098db..b20432b5b1f7ec86a60837426a4e4b6cc6769bba 100644
--- a/chromecast/media/cma/ipc/media_message_fifo.h
+++ b/chromecast/media/cma/ipc/media_message_fifo.h
@@ -82,7 +82,19 @@ class MediaMessageFlag;
//
//
class MediaMessageFifo {
+ private:
+ struct Descriptor {
+ size_t size;
+ size_t rd_offset;
+ size_t wr_offset;
+
+ // Ensure the first item has the same alignment as an int64.
+ int64 first_item;
+ };
+
public:
+ static const int kDescriptorSize = sizeof(Descriptor);
+
// Creates a media message fifo using |mem| as the underlying serialized
// structure.
// If |init| is true, the underlying fifo structure is initialized.
@@ -108,15 +120,6 @@ class MediaMessageFifo {
void Flush();
private:
- struct Descriptor {
- size_t size;
- size_t rd_offset;
- size_t wr_offset;
-
- // Ensure the first item has the same alignment as an int64.
- int64 first_item;
- };
-
// Add some accessors to ensure security on the browser process side.
size_t current_rd_offset() const;
size_t current_wr_offset() const;
« no previous file with comments | « chromecast/chromecast_tests.gypi ('k') | chromecast/renderer/media/cma_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698