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 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1066 } | 1066 } |
1067 | 1067 |
1068 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( | 1068 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( |
1069 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 1069 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
1070 int gpu_host_id) { | 1070 int gpu_host_id) { |
1071 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1071 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1072 ack_params.sync_point = 0; | 1072 ack_params.sync_point = 0; |
1073 RenderWidgetHostImpl::AcknowledgeBufferPresent( | 1073 RenderWidgetHostImpl::AcknowledgeBufferPresent( |
1074 params.route_id, gpu_host_id, ack_params); | 1074 params.route_id, gpu_host_id, ack_params); |
1075 host_->FrameSwapped(params.latency_info); | 1075 host_->FrameSwapped(params.latency_info); |
1076 DidReceiveRendererFrame(); | |
piman
2013/07/02 01:49:09
Also needed in DidUpdateBackingStore
danakj
2013/07/03 18:05:39
Done.
| |
1076 } | 1077 } |
1077 | 1078 |
1078 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( | 1079 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( |
1079 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 1080 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
1080 int gpu_host_id) { | 1081 int gpu_host_id) { |
1081 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1082 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1082 ack_params.sync_point = 0; | 1083 ack_params.sync_point = 0; |
1083 RenderWidgetHostImpl::AcknowledgeBufferPresent( | 1084 RenderWidgetHostImpl::AcknowledgeBufferPresent( |
1084 params.route_id, gpu_host_id, ack_params); | 1085 params.route_id, gpu_host_id, ack_params); |
1085 host_->FrameSwapped(params.latency_info); | 1086 host_->FrameSwapped(params.latency_info); |
1087 DidReceiveRendererFrame(); | |
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 482 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 |