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

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: 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 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 memcpy(pixels, image->data, bitmap_size); 1044 memcpy(pixels, image->data, bitmap_size);
1045 1045
1046 scoped_callback_runner.Release(); 1046 scoped_callback_runner.Release();
1047 callback.Run(true); 1047 callback.Run(true);
1048 } 1048 }
1049 1049
1050 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( 1050 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped(
1051 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 1051 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
1052 int gpu_host_id) { 1052 int gpu_host_id) {
1053 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1053 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1054 params.route_id, gpu_host_id, true, 0); 1054 params.route_id, gpu_host_id, params.surface_handle, 0);
1055 } 1055 }
1056 1056
1057 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( 1057 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer(
1058 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 1058 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
1059 int gpu_host_id) { 1059 int gpu_host_id) {
1060 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1060 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1061 params.route_id, gpu_host_id, true, 0); 1061 params.route_id, gpu_host_id, params.surface_handle, 0);
1062 } 1062 }
1063 1063
1064 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { 1064 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() {
1065 } 1065 }
1066 1066
1067 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( 1067 bool RenderWidgetHostViewGtk::HasAcceleratedSurface(
1068 const gfx::Size& desired_size) { 1068 const gfx::Size& desired_size) {
1069 // TODO(jbates) Implement this so this view can use GetBackingStore for both 1069 // TODO(jbates) Implement this so this view can use GetBackingStore for both
1070 // software and GPU frames. Defaulting to false just makes GetBackingStore 1070 // software and GPU frames. Defaulting to false just makes GetBackingStore
1071 // only useable for software frames. 1071 // only useable for software frames.
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 this)); 1529 this));
1530 } 1530 }
1531 BrowserAccessibilityGtk* root = 1531 BrowserAccessibilityGtk* root =
1532 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); 1532 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk();
1533 1533
1534 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); 1534 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER);
1535 return root->GetAtkObject(); 1535 return root->GetAtkObject();
1536 } 1536 }
1537 1537
1538 } // namespace content 1538 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698