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

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

Issue 11194042: Implement TextureImageTransportSurface using texture mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased, fixed post sub buffer, use multiple mailbox names 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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 memcpy(pixels, image->data, bitmap_size); 1064 memcpy(pixels, image->data, bitmap_size);
1065 1065
1066 scoped_callback_runner.Release(); 1066 scoped_callback_runner.Release();
1067 callback.Run(true); 1067 callback.Run(true);
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 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1073 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1074 params.route_id, gpu_host_id, true, 0); 1074 params.route_id, gpu_host_id, params.surface_handle, 0);
1075 } 1075 }
1076 1076
1077 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( 1077 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer(
1078 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 1078 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
1079 int gpu_host_id) { 1079 int gpu_host_id) {
1080 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1080 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1081 params.route_id, gpu_host_id, true, 0); 1081 params.route_id, gpu_host_id, params.surface_handle, 0);
1082 } 1082 }
1083 1083
1084 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { 1084 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() {
1085 } 1085 }
1086 1086
1087 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( 1087 bool RenderWidgetHostViewGtk::HasAcceleratedSurface(
1088 const gfx::Size& desired_size) { 1088 const gfx::Size& desired_size) {
1089 // TODO(jbates) Implement this so this view can use GetBackingStore for both 1089 // TODO(jbates) Implement this so this view can use GetBackingStore for both
1090 // software and GPU frames. Defaulting to false just makes GetBackingStore 1090 // software and GPU frames. Defaulting to false just makes GetBackingStore
1091 // only useable for software frames. 1091 // only useable for software frames.
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 this)); 1549 this));
1550 } 1550 }
1551 BrowserAccessibilityGtk* root = 1551 BrowserAccessibilityGtk* root =
1552 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); 1552 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk();
1553 1553
1554 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); 1554 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER);
1555 return root->GetAtkObject(); 1555 return root->GetAtkObject();
1556 } 1556 }
1557 1557
1558 } // namespace content 1558 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698