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 #include "chrome/renderer/render_thread.h" | 6 #include "chrome/renderer/render_thread.h" |
7 #include "chrome/renderer/webplugin_delegate_pepper.h" | 7 #include "chrome/renderer/webplugin_delegate_pepper.h" |
8 #include "skia/ext/platform_canvas.h" | 8 #include "skia/ext/platform_canvas.h" |
| 9 #include "third_party/skia/include/core/SkBitmap.h" |
9 #include "webkit/glue/plugins/plugin_instance.h" | 10 #include "webkit/glue/plugins/plugin_instance.h" |
10 #include "webkit/glue/plugins/webplugin.h" | 11 #include "webkit/glue/plugins/webplugin.h" |
11 #include "third_party/skia/include/core/SkBitmap.h" | |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 const uint32 kBytesPerPixel = 4; // Only 8888 RGBA for now. | 15 const uint32 kBytesPerPixel = 4; // Only 8888 RGBA for now. |
16 | 16 |
17 } // namespace | 17 } // namespace |
18 | 18 |
19 int Graphics2DDeviceContext::next_buffer_id_ = 0; | 19 int Graphics2DDeviceContext::next_buffer_id_ = 0; |
20 | 20 |
21 Graphics2DDeviceContext::Graphics2DDeviceContext( | 21 Graphics2DDeviceContext::Graphics2DDeviceContext( |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 void AudioDeviceContext::Run() { | 271 void AudioDeviceContext::Run() { |
272 int pending_data; | 272 int pending_data; |
273 while (sizeof(pending_data) == socket_->Receive(&pending_data, | 273 while (sizeof(pending_data) == socket_->Receive(&pending_data, |
274 sizeof(pending_data)) && | 274 sizeof(pending_data)) && |
275 pending_data >= 0) { | 275 pending_data >= 0) { |
276 FireAudioCallback(); | 276 FireAudioCallback(); |
277 } | 277 } |
278 } | 278 } |
279 | 279 |
OLD | NEW |