| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "shared_memory_seqlock_reader.h" | 5 #include "content/renderer/shared_memory_seqlock_reader.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 namespace internal { | 8 namespace internal { |
| 9 | 9 |
| 10 SharedMemorySeqLockReaderBase::SharedMemorySeqLockReaderBase() { } | 10 SharedMemorySeqLockReaderBase::SharedMemorySeqLockReaderBase() { } |
| 11 | 11 |
| 12 SharedMemorySeqLockReaderBase::~SharedMemorySeqLockReaderBase() { } | 12 SharedMemorySeqLockReaderBase::~SharedMemorySeqLockReaderBase() { } |
| 13 | 13 |
| 14 void* | 14 void* |
| 15 SharedMemorySeqLockReaderBase::InitializeSharedMemory( | 15 SharedMemorySeqLockReaderBase::InitializeSharedMemory( |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 return false; | 51 return false; |
| 52 } | 52 } |
| 53 | 53 |
| 54 // New data was read successfully, copy it into the output buffer. | 54 // New data was read successfully, copy it into the output buffer. |
| 55 memcpy(final, temp, size); | 55 memcpy(final, temp, size); |
| 56 return true; | 56 return true; |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace internal | 59 } // namespace internal |
| 60 } // namespace content | 60 } // namespace content |
| OLD | NEW |