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

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: fixed some perf issues on mac 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 return false;
1007 }
1004 1008
1005 void RenderWidgetHostViewGtk::SetBackground(const SkBitmap& background) { 1009 void RenderWidgetHostViewGtk::SetBackground(const SkBitmap& background) {
1006 content::RenderWidgetHostViewBase::SetBackground(background); 1010 content::RenderWidgetHostViewBase::SetBackground(background);
1007 host_->Send(new ViewMsg_SetBackground(host_->GetRoutingID(), background)); 1011 host_->Send(new ViewMsg_SetBackground(host_->GetRoutingID(), background));
1008 } 1012 }
1009 1013
1010 void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging( 1014 void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging(
1011 GtkWidget* widget, GdkEventMotion* event) { 1015 GtkWidget* widget, GdkEventMotion* event) {
1012 // If the widget is aligned with an edge of the monitor its on and the user 1016 // 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 1017 // 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); 1384 return new RenderWidgetHostViewGtk(widget);
1381 } 1385 }
1382 1386
1383 // static 1387 // static
1384 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo( 1388 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo(
1385 WebKit::WebScreenInfo* results) { 1389 WebKit::WebScreenInfo* results) {
1386 GdkWindow* gdk_window = 1390 GdkWindow* gdk_window =
1387 gdk_display_get_default_group(gdk_display_get_default()); 1391 gdk_display_get_default_group(gdk_display_get_default());
1388 content::GetScreenInfoFromNativeWindow(gdk_window, results); 1392 content::GetScreenInfoFromNativeWindow(gdk_window, results);
1389 } 1393 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698