Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With a unittest (and minor compile fixes for other platforms). Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 memcpy(pixels, image->data, bitmap_size); 1062 memcpy(pixels, image->data, bitmap_size);
1063 1063
1064 scoped_callback_runner.Release(); 1064 scoped_callback_runner.Release();
1065 callback.Run(true); 1065 callback.Run(true);
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 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1071 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1072 params.route_id, gpu_host_id, 0); 1072 params.route_id, gpu_host_id, true, 0);
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 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1078 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1079 params.route_id, gpu_host_id, 0); 1079 params.route_id, gpu_host_id, true, 0);
1080 } 1080 }
1081 1081
1082 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { 1082 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() {
1083 } 1083 }
1084 1084
1085 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( 1085 bool RenderWidgetHostViewGtk::HasAcceleratedSurface(
1086 const gfx::Size& desired_size) { 1086 const gfx::Size& desired_size) {
1087 // TODO(jbates) Implement this so this view can use GetBackingStore for both 1087 // TODO(jbates) Implement this so this view can use GetBackingStore for both
1088 // software and GPU frames. Defaulting to false just makes GetBackingStore 1088 // software and GPU frames. Defaulting to false just makes GetBackingStore
1089 // only useable for software frames. 1089 // only useable for software frames.
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 this)); 1547 this));
1548 } 1548 }
1549 BrowserAccessibilityGtk* root = 1549 BrowserAccessibilityGtk* root =
1550 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); 1550 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk();
1551 1551
1552 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); 1552 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER);
1553 return root->GetAtkObject(); 1553 return root->GetAtkObject();
1554 } 1554 }
1555 1555
1556 } // namespace content 1556 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698