OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ppb_audio_shared.h" | 5 #include "ppapi/shared_impl/ppb_audio_shared.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/trace_event/trace_event.h" |
9 #include "ppapi/nacl_irt/public/irt_ppapi.h" | 9 #include "ppapi/nacl_irt/public/irt_ppapi.h" |
10 #include "ppapi/shared_impl/ppapi_globals.h" | 10 #include "ppapi/shared_impl/ppapi_globals.h" |
11 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 11 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
12 #include "ppapi/shared_impl/proxy_lock.h" | 12 #include "ppapi/shared_impl/proxy_lock.h" |
13 | 13 |
14 namespace ppapi { | 14 namespace ppapi { |
15 | 15 |
16 namespace { | 16 namespace { |
17 bool g_nacl_mode = false; | 17 bool g_nacl_mode = false; |
18 // Because this is static, the function pointers will be NULL initially. | 18 // Because this is static, the function pointers will be NULL initially. |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // Let the other end know which buffer we just filled. The buffer index is | 229 // Let the other end know which buffer we just filled. The buffer index is |
230 // used to ensure the other end is getting the buffer it expects. For more | 230 // used to ensure the other end is getting the buffer it expects. For more |
231 // details on how this works see AudioSyncReader::WaitUntilDataIsReady(). | 231 // details on how this works see AudioSyncReader::WaitUntilDataIsReady(). |
232 size_t bytes_sent = socket_->Send(&buffer_index_, sizeof(buffer_index_)); | 232 size_t bytes_sent = socket_->Send(&buffer_index_, sizeof(buffer_index_)); |
233 if (bytes_sent != sizeof(buffer_index_)) | 233 if (bytes_sent != sizeof(buffer_index_)) |
234 break; | 234 break; |
235 } | 235 } |
236 } | 236 } |
237 | 237 |
238 } // namespace ppapi | 238 } // namespace ppapi |
OLD | NEW |