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