| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/pepper_devices.h" | 5 #include "chrome/renderer/pepper_devices.h" |
| 6 | 6 |
| 7 #include "chrome/common/render_messages.h" |
| 7 #include "chrome/common/render_messages_params.h" | 8 #include "chrome/common/render_messages_params.h" |
| 8 #include "chrome/renderer/render_thread.h" | 9 #include "chrome/renderer/render_thread.h" |
| 9 #include "chrome/renderer/webplugin_delegate_pepper.h" | 10 #include "chrome/renderer/webplugin_delegate_pepper.h" |
| 10 #include "skia/ext/platform_canvas.h" | 11 #include "skia/ext/platform_canvas.h" |
| 11 #include "third_party/skia/include/core/SkBitmap.h" | 12 #include "third_party/skia/include/core/SkBitmap.h" |
| 12 #include "webkit/plugins/npapi/plugin_instance.h" | 13 #include "webkit/plugins/npapi/plugin_instance.h" |
| 13 #include "webkit/plugins/npapi/webplugin.h" | 14 #include "webkit/plugins/npapi/webplugin.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 } | 295 } |
| 295 | 296 |
| 296 void AudioDeviceContext::Run() { | 297 void AudioDeviceContext::Run() { |
| 297 int pending_data; | 298 int pending_data; |
| 298 while (sizeof(pending_data) == socket_->Receive(&pending_data, | 299 while (sizeof(pending_data) == socket_->Receive(&pending_data, |
| 299 sizeof(pending_data)) && | 300 sizeof(pending_data)) && |
| 300 pending_data >= 0) { | 301 pending_data >= 0) { |
| 301 FireAudioCallback(); | 302 FireAudioCallback(); |
| 302 } | 303 } |
| 303 } | 304 } |
| OLD | NEW |