| 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/proxy/media_stream_track_resource_base.h" | 5 #include "ppapi/proxy/media_stream_track_resource_base.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "ppapi/proxy/ppapi_messages.h" | 10 #include "ppapi/proxy/ppapi_messages.h" |
| 9 | 11 |
| 10 namespace ppapi { | 12 namespace ppapi { |
| 11 namespace proxy { | 13 namespace proxy { |
| 12 | 14 |
| 13 MediaStreamTrackResourceBase::MediaStreamTrackResourceBase( | 15 MediaStreamTrackResourceBase::MediaStreamTrackResourceBase( |
| 14 Connection connection, | 16 Connection connection, |
| 15 PP_Instance instance, | 17 PP_Instance instance, |
| 16 int pending_renderer_id, | 18 int pending_renderer_id, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 86 |
| 85 void MediaStreamTrackResourceBase::OnPluginMsgEnqueueBuffers( | 87 void MediaStreamTrackResourceBase::OnPluginMsgEnqueueBuffers( |
| 86 const ResourceMessageReplyParams& params, | 88 const ResourceMessageReplyParams& params, |
| 87 const std::vector<int32_t>& indices) { | 89 const std::vector<int32_t>& indices) { |
| 88 for (size_t i = 0; i < indices.size(); ++i) | 90 for (size_t i = 0; i < indices.size(); ++i) |
| 89 buffer_manager_.EnqueueBuffer(indices[i]); | 91 buffer_manager_.EnqueueBuffer(indices[i]); |
| 90 } | 92 } |
| 91 | 93 |
| 92 } // namespace proxy | 94 } // namespace proxy |
| 93 } // namespace ppapi | 95 } // namespace ppapi |
| OLD | NEW |