| 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 #include <cairo/cairo.h> | 7 #include <cairo/cairo.h> |
| 8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
| 9 #include <gdk/gdkkeysyms.h> | 9 #include <gdk/gdkkeysyms.h> |
| 10 #include <gdk/gdkx.h> | 10 #include <gdk/gdkx.h> |
| (...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 return false; | 1062 return false; |
| 1063 } | 1063 } |
| 1064 | 1064 |
| 1065 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( | 1065 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( |
| 1066 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 1066 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 1067 int gpu_host_id) { | 1067 int gpu_host_id) { |
| 1068 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1068 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1069 ack_params.sync_point = 0; | 1069 ack_params.sync_point = 0; |
| 1070 RenderWidgetHostImpl::AcknowledgeBufferPresent( | 1070 RenderWidgetHostImpl::AcknowledgeBufferPresent( |
| 1071 params.route_id, gpu_host_id, ack_params); | 1071 params.route_id, gpu_host_id, ack_params); |
| 1072 host_->FrameSwapped(params.latency_info); | 1072 RenderWidgetHostImpl::CompositorFrameDrawn(params.latency_info); |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( | 1075 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( |
| 1076 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 1076 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 1077 int gpu_host_id) { | 1077 int gpu_host_id) { |
| 1078 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1078 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1079 ack_params.sync_point = 0; | 1079 ack_params.sync_point = 0; |
| 1080 RenderWidgetHostImpl::AcknowledgeBufferPresent( | 1080 RenderWidgetHostImpl::AcknowledgeBufferPresent( |
| 1081 params.route_id, gpu_host_id, ack_params); | 1081 params.route_id, gpu_host_id, ack_params); |
| 1082 host_->FrameSwapped(params.latency_info); | 1082 RenderWidgetHostImpl::CompositorFrameDrawn(params.latency_info); |
| 1083 } | 1083 } |
| 1084 | 1084 |
| 1085 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { | 1085 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 void RenderWidgetHostViewGtk::AcceleratedSurfaceRelease() { | 1088 void RenderWidgetHostViewGtk::AcceleratedSurfaceRelease() { |
| 1089 } | 1089 } |
| 1090 | 1090 |
| 1091 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( | 1091 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( |
| 1092 const gfx::Size& desired_size) { | 1092 const gfx::Size& desired_size) { |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1575 gfx::PluginWindowHandle id) { | 1575 gfx::PluginWindowHandle id) { |
| 1576 plugin_container_manager_.CreatePluginContainer(id); | 1576 plugin_container_manager_.CreatePluginContainer(id); |
| 1577 } | 1577 } |
| 1578 | 1578 |
| 1579 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( | 1579 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( |
| 1580 gfx::PluginWindowHandle id) { | 1580 gfx::PluginWindowHandle id) { |
| 1581 plugin_container_manager_.DestroyPluginContainer(id); | 1581 plugin_container_manager_.DestroyPluginContainer(id); |
| 1582 } | 1582 } |
| 1583 | 1583 |
| 1584 } // namespace content | 1584 } // namespace content |
| OLD | NEW |