| 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 "content/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 6 #include "content/common/gpu/gpu_messages.h" | 6 #include "content/common/gpu/gpu_messages.h" |
| 7 #include "content/port/browser/render_widget_host_view_port.h" | 7 #include "content/port/browser/render_widget_host_view_port.h" |
| 8 | 8 |
| 9 using content::RenderWidgetHostImpl; | 9 using content::RenderWidgetHostImpl; |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 int32 width, | 56 int32 width, |
| 57 int32 height, | 57 int32 height, |
| 58 TransportDIB::Handle transport_dib) { | 58 TransportDIB::Handle transport_dib) { |
| 59 if (view_) { | 59 if (view_) { |
| 60 view_->AcceleratedSurfaceSetTransportDIB(window, width, height, | 60 view_->AcceleratedSurfaceSetTransportDIB(window, width, height, |
| 61 transport_dib); | 61 transport_dib); |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 | 64 |
| 65 void RenderWidgetHostImpl::OnAcceleratedSurfaceBuffersSwapped( | 65 void RenderWidgetHostImpl::OnAcceleratedSurfaceBuffersSwapped( |
| 66 gfx::PluginWindowHandle window, uint64 surface_id) { | 66 gfx::PluginWindowHandle window, uint64 surface_handle) { |
| 67 if (view_) { | 67 if (view_) { |
| 68 // This code path could be updated to implement flow control for | 68 // This code path could be updated to implement flow control for |
| 69 // updating of accelerated plugins as well. However, if we add support | 69 // updating of accelerated plugins as well. However, if we add support |
| 70 // for composited plugins then this is not necessary. | 70 // for composited plugins then this is not necessary. |
| 71 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params; | 71 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params; |
| 72 params.window = window; | 72 params.window = window; |
| 73 params.surface_id = surface_id; | 73 params.surface_handle = surface_handle; |
| 74 view_->AcceleratedSurfaceBuffersSwapped(params, 0); | 74 view_->AcceleratedSurfaceBuffersSwapped(params, 0); |
| 75 } | 75 } |
| 76 } | 76 } |
| OLD | NEW |