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 "ppapi/shared_impl/media_stream_buffer_manager.h" | 5 #include "ppapi/shared_impl/media_stream_buffer_manager.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
11 #include "ppapi/shared_impl/media_stream_buffer.h" | 13 #include "ppapi/shared_impl/media_stream_buffer.h" |
12 | 14 |
13 namespace ppapi { | 15 namespace ppapi { |
14 | 16 |
15 MediaStreamBufferManager::Delegate::~Delegate() {} | 17 MediaStreamBufferManager::Delegate::~Delegate() {} |
16 | 18 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 return !buffer_queue_.empty(); | 80 return !buffer_queue_.empty(); |
79 } | 81 } |
80 | 82 |
81 MediaStreamBuffer* MediaStreamBufferManager::GetBufferPointer(int32_t index) { | 83 MediaStreamBuffer* MediaStreamBufferManager::GetBufferPointer(int32_t index) { |
82 if (index < 0 || index >= number_of_buffers_) | 84 if (index < 0 || index >= number_of_buffers_) |
83 return NULL; | 85 return NULL; |
84 return buffers_[index]; | 86 return buffers_[index]; |
85 } | 87 } |
86 | 88 |
87 } // namespace ppapi | 89 } // namespace ppapi |
OLD | NEW |