| 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_view_gtk.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" |
| 6 | 6 |
| 7 // If this gets included after the gtk headers, then a bunch of compiler | 7 // If this gets included after the gtk headers, then a bunch of compiler |
| 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts | 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts |
| 9 // badly with net::URLRequestStatus::Status. | 9 // badly with net::URLRequestStatus::Status. |
| 10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
| (...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1070 return false; | 1070 return false; |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( | 1073 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( |
| 1074 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 1074 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 1075 int gpu_host_id) { | 1075 int gpu_host_id) { |
| 1076 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1076 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1077 ack_params.sync_point = 0; | 1077 ack_params.sync_point = 0; |
| 1078 RenderWidgetHostImpl::AcknowledgeBufferPresent( | 1078 RenderWidgetHostImpl::AcknowledgeBufferPresent( |
| 1079 params.route_id, gpu_host_id, ack_params); | 1079 params.route_id, gpu_host_id, ack_params); |
| 1080 host_->FrameSwapped(params.latency_info); |
| 1080 } | 1081 } |
| 1081 | 1082 |
| 1082 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( | 1083 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( |
| 1083 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 1084 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 1084 int gpu_host_id) { | 1085 int gpu_host_id) { |
| 1085 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1086 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1086 ack_params.sync_point = 0; | 1087 ack_params.sync_point = 0; |
| 1087 RenderWidgetHostImpl::AcknowledgeBufferPresent( | 1088 RenderWidgetHostImpl::AcknowledgeBufferPresent( |
| 1088 params.route_id, gpu_host_id, ack_params); | 1089 params.route_id, gpu_host_id, ack_params); |
| 1090 host_->FrameSwapped(params.latency_info); |
| 1089 } | 1091 } |
| 1090 | 1092 |
| 1091 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { | 1093 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { |
| 1092 } | 1094 } |
| 1093 | 1095 |
| 1094 void RenderWidgetHostViewGtk::AcceleratedSurfaceRelease() { | 1096 void RenderWidgetHostViewGtk::AcceleratedSurfaceRelease() { |
| 1095 } | 1097 } |
| 1096 | 1098 |
| 1097 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( | 1099 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( |
| 1098 const gfx::Size& desired_size) { | 1100 const gfx::Size& desired_size) { |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 gfx::PluginWindowHandle id) { | 1580 gfx::PluginWindowHandle id) { |
| 1579 plugin_container_manager_.CreatePluginContainer(id); | 1581 plugin_container_manager_.CreatePluginContainer(id); |
| 1580 } | 1582 } |
| 1581 | 1583 |
| 1582 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( | 1584 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( |
| 1583 gfx::PluginWindowHandle id) { | 1585 gfx::PluginWindowHandle id) { |
| 1584 plugin_container_manager_.DestroyPluginContainer(id); | 1586 plugin_container_manager_.DestroyPluginContainer(id); |
| 1585 } | 1587 } |
| 1586 | 1588 |
| 1587 } // namespace content | 1589 } // namespace content |
| OLD | NEW |