| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromecast/media/cma/ipc/media_message_fifo.h" | 5 #include "chromecast/media/cma/ipc/media_message_fifo.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/atomicops.h" | 9 #include "base/atomicops.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "chromecast/media/cma/base/cma_logging.h" | 16 #include "chromecast/media/cma/base/cma_logging.h" |
| 17 #include "chromecast/media/cma/ipc/media_memory_chunk.h" | 17 #include "chromecast/media/cma/ipc/media_memory_chunk.h" |
| 18 #include "chromecast/media/cma/ipc/media_message.h" | 18 #include "chromecast/media/cma/ipc/media_message.h" |
| 19 #include "chromecast/media/cma/ipc/media_message_type.h" | 19 #include "chromecast/media/cma/ipc/media_message_type.h" |
| 20 | 20 |
| 21 namespace chromecast { | 21 namespace chromecast { |
| 22 namespace media { | 22 namespace media { |
| 23 | 23 |
| 24 class MediaMessageFlag | 24 class MediaMessageFlag |
| 25 : public base::RefCountedThreadSafe<MediaMessageFlag> { | 25 : public base::RefCountedThreadSafe<MediaMessageFlag> { |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 void MediaMessageFifo::CommitInternalRead(size_t new_rd_offset) { | 396 void MediaMessageFifo::CommitInternalRead(size_t new_rd_offset) { |
| 397 internal_rd_offset_ = new_rd_offset; | 397 internal_rd_offset_ = new_rd_offset; |
| 398 } | 398 } |
| 399 | 399 |
| 400 void MediaMessageFifo::CommitInternalWrite(size_t new_wr_offset) { | 400 void MediaMessageFifo::CommitInternalWrite(size_t new_wr_offset) { |
| 401 internal_wr_offset_ = new_wr_offset; | 401 internal_wr_offset_ = new_wr_offset; |
| 402 } | 402 } |
| 403 | 403 |
| 404 } // namespace media | 404 } // namespace media |
| 405 } // namespace chromecast | 405 } // namespace chromecast |
| OLD | NEW |