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

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

Issue 9980016: Delete background tab IOSurfaces on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changed 40ms timeout to 50ms for GetBackingStore Created 8 years, 8 months 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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 994
995 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( 995 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer(
996 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 996 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
997 int gpu_host_id) { 997 int gpu_host_id) {
998 RenderWidgetHostImpl::AcknowledgePostSubBuffer(params.route_id, gpu_host_id); 998 RenderWidgetHostImpl::AcknowledgePostSubBuffer(params.route_id, gpu_host_id);
999 } 999 }
1000 1000
1001 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { 1001 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() {
1002 } 1002 }
1003 1003
1004 bool RenderWidgetHostViewGtk::HasAcceleratedSurface(
1005 const gfx::Size& desired_size) {
1006 // TODO(jbates) Implement this so this view can use GetBackingStore for both
1007 // software and GPU frames. Defaulting to false just makes GetBackingStore
1008 // only useable for software frames.
1009 return false;
1010 }
1004 1011
1005 void RenderWidgetHostViewGtk::SetBackground(const SkBitmap& background) { 1012 void RenderWidgetHostViewGtk::SetBackground(const SkBitmap& background) {
1006 content::RenderWidgetHostViewBase::SetBackground(background); 1013 content::RenderWidgetHostViewBase::SetBackground(background);
1007 host_->Send(new ViewMsg_SetBackground(host_->GetRoutingID(), background)); 1014 host_->Send(new ViewMsg_SetBackground(host_->GetRoutingID(), background));
1008 } 1015 }
1009 1016
1010 void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging( 1017 void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging(
1011 GtkWidget* widget, GdkEventMotion* event) { 1018 GtkWidget* widget, GdkEventMotion* event) {
1012 // If the widget is aligned with an edge of the monitor its on and the user 1019 // If the widget is aligned with an edge of the monitor its on and the user
1013 // attempts to drag past that edge we track the number of times it has 1020 // attempts to drag past that edge we track the number of times it has
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 return new RenderWidgetHostViewGtk(widget); 1387 return new RenderWidgetHostViewGtk(widget);
1381 } 1388 }
1382 1389
1383 // static 1390 // static
1384 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo( 1391 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo(
1385 WebKit::WebScreenInfo* results) { 1392 WebKit::WebScreenInfo* results) {
1386 GdkWindow* gdk_window = 1393 GdkWindow* gdk_window =
1387 gdk_display_get_default_group(gdk_display_get_default()); 1394 gdk_display_get_default_group(gdk_display_get_default());
1388 content::GetScreenInfoFromNativeWindow(gdk_window, results); 1395 content::GetScreenInfoFromNativeWindow(gdk_window, results);
1389 } 1396 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698