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

Side by Side Diff: chromecast/common/media/shared_memory_chunk.cc

Issue 2300993003: CmaRenderer is dead. Long live MojoRenderer. (Closed)
Patch Set: update OWNERS file Created 4 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
« no previous file with comments | « chromecast/common/media/shared_memory_chunk.h ('k') | chromecast/media/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chromecast/common/media/shared_memory_chunk.h"
6
7 #include <utility>
8
9 #include "base/memory/shared_memory.h"
10
11 namespace chromecast {
12 namespace media {
13
14 SharedMemoryChunk::SharedMemoryChunk(
15 std::unique_ptr<base::SharedMemory> shared_mem,
16 size_t size)
17 : shared_mem_(std::move(shared_mem)), size_(size) {}
18
19 SharedMemoryChunk::~SharedMemoryChunk() {
20 }
21
22 void* SharedMemoryChunk::data() const {
23 return shared_mem_->memory();
24 }
25
26 size_t SharedMemoryChunk::size() const {
27 return size_;
28 }
29
30 bool SharedMemoryChunk::valid() const {
31 return true;
32 }
33
34 } // namespace media
35 } // namespace chromecast
36
OLDNEW
« no previous file with comments | « chromecast/common/media/shared_memory_chunk.h ('k') | chromecast/media/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698