| 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 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1065 memcpy(pixels, image->data, bitmap_size); | 1065 memcpy(pixels, image->data, bitmap_size); |
| 1066 | 1066 |
| 1067 scoped_callback_runner.Release(); | 1067 scoped_callback_runner.Release(); |
| 1068 callback.Run(true); | 1068 callback.Run(true); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( | 1071 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( |
| 1072 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 1072 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 1073 int gpu_host_id) { | 1073 int gpu_host_id) { |
| 1074 RenderWidgetHostImpl::AcknowledgeBufferPresent( | 1074 RenderWidgetHostImpl::AcknowledgeBufferPresent( |
| 1075 params.route_id, gpu_host_id, 0); | 1075 params.route_id, gpu_host_id, true, 0); |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( | 1078 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( |
| 1079 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 1079 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 1080 int gpu_host_id) { | 1080 int gpu_host_id) { |
| 1081 RenderWidgetHostImpl::AcknowledgeBufferPresent( | 1081 RenderWidgetHostImpl::AcknowledgeBufferPresent( |
| 1082 params.route_id, gpu_host_id, 0); | 1082 params.route_id, gpu_host_id, true, 0); |
| 1083 } | 1083 } |
| 1084 | 1084 |
| 1085 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { | 1085 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( | 1088 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( |
| 1089 const gfx::Size& desired_size) { | 1089 const gfx::Size& desired_size) { |
| 1090 // TODO(jbates) Implement this so this view can use GetBackingStore for both | 1090 // TODO(jbates) Implement this so this view can use GetBackingStore for both |
| 1091 // software and GPU frames. Defaulting to false just makes GetBackingStore | 1091 // software and GPU frames. Defaulting to false just makes GetBackingStore |
| 1092 // only useable for software frames. | 1092 // only useable for software frames. |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1550 this)); | 1550 this)); |
| 1551 } | 1551 } |
| 1552 BrowserAccessibilityGtk* root = | 1552 BrowserAccessibilityGtk* root = |
| 1553 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); | 1553 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); |
| 1554 | 1554 |
| 1555 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); | 1555 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); |
| 1556 return root->GetAtkObject(); | 1556 return root->GetAtkObject(); |
| 1557 } | 1557 } |
| 1558 | 1558 |
| 1559 } // namespace content | 1559 } // namespace content |
| OLD | NEW |