| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_widget_host.h" | 5 #include "content/browser/renderer_host/render_widget_host.h" |
| 6 #include "content/browser/renderer_host/render_widget_host_view.h" | 6 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 7 #include "content/common/gpu/gpu_messages.h" | |
| 8 | 7 |
| 9 void RenderWidgetHost::OnMsgPluginFocusChanged(bool focused, int plugin_id) { | 8 void RenderWidgetHost::OnMsgPluginFocusChanged(bool focused, int plugin_id) { |
| 10 if (view_) | 9 if (view_) |
| 11 view_->PluginFocusChanged(focused, plugin_id); | 10 view_->PluginFocusChanged(focused, plugin_id); |
| 12 } | 11 } |
| 13 | 12 |
| 14 void RenderWidgetHost::OnMsgStartPluginIme() { | 13 void RenderWidgetHost::OnMsgStartPluginIme() { |
| 15 if (view_) | 14 if (view_) |
| 16 view_->StartPluginIme(); | 15 view_->StartPluginIme(); |
| 17 } | 16 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 transport_dib); | 57 transport_dib); |
| 59 } | 58 } |
| 60 } | 59 } |
| 61 | 60 |
| 62 void RenderWidgetHost::OnAcceleratedSurfaceBuffersSwapped( | 61 void RenderWidgetHost::OnAcceleratedSurfaceBuffersSwapped( |
| 63 gfx::PluginWindowHandle window, uint64 surface_id) { | 62 gfx::PluginWindowHandle window, uint64 surface_id) { |
| 64 if (view_) { | 63 if (view_) { |
| 65 // This code path could be updated to implement flow control for | 64 // This code path could be updated to implement flow control for |
| 66 // updating of accelerated plugins as well. However, if we add support | 65 // updating of accelerated plugins as well. However, if we add support |
| 67 // for composited plugins then this is not necessary. | 66 // for composited plugins then this is not necessary. |
| 68 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params; | 67 view_->AcceleratedSurfaceBuffersSwapped(window, surface_id, |
| 69 params.window = window; | 68 0, 0, 0); |
| 70 params.surface_id = surface_id; | |
| 71 view_->AcceleratedSurfaceBuffersSwapped(params, 0); | |
| 72 } | 69 } |
| 73 } | 70 } |
| OLD | NEW |