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

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

Issue 8060045: Use shared D3D9 texture to transport the compositor's backing buffer to the browser... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 gtk_widget_show_all(GTK_WIDGET(window)); 998 gtk_widget_show_all(GTK_WIDGET(window));
999 } 999 }
1000 1000
1001 BackingStore* RenderWidgetHostViewGtk::AllocBackingStore( 1001 BackingStore* RenderWidgetHostViewGtk::AllocBackingStore(
1002 const gfx::Size& size) { 1002 const gfx::Size& size) {
1003 return new BackingStoreGtk(host_, size, 1003 return new BackingStoreGtk(host_, size,
1004 ui::GetVisualFromGtkWidget(view_.get()), 1004 ui::GetVisualFromGtkWidget(view_.get()),
1005 gtk_widget_get_visual(view_.get())->depth); 1005 gtk_widget_get_visual(view_.get())->depth);
1006 } 1006 }
1007 1007
1008 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped(
1009 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
1010 int gpu_host_id) {
jonathan.backer 2011/11/03 23:09:07 NOTREACHED()
1011 }
1012
1008 void RenderWidgetHostViewGtk::SetBackground(const SkBitmap& background) { 1013 void RenderWidgetHostViewGtk::SetBackground(const SkBitmap& background) {
1009 RenderWidgetHostView::SetBackground(background); 1014 RenderWidgetHostView::SetBackground(background);
1010 host_->Send(new ViewMsg_SetBackground(host_->routing_id(), background)); 1015 host_->Send(new ViewMsg_SetBackground(host_->routing_id(), background));
1011 } 1016 }
1012 1017
1013 void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging( 1018 void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging(
1014 GtkWidget* widget, GdkEventMotion* event) { 1019 GtkWidget* widget, GdkEventMotion* event) {
1015 // If the widget is aligned with an edge of the monitor its on and the user 1020 // If the widget is aligned with an edge of the monitor its on and the user
1016 // attempts to drag past that edge we track the number of times it has 1021 // attempts to drag past that edge we track the number of times it has
1017 // occurred, so that we can force the widget to scroll when it otherwise 1022 // occurred, so that we can force the widget to scroll when it otherwise
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 } 1420 }
1416 } 1421 }
1417 1422
1418 // static 1423 // static
1419 void RenderWidgetHostView::GetDefaultScreenInfo( 1424 void RenderWidgetHostView::GetDefaultScreenInfo(
1420 WebKit::WebScreenInfo* results) { 1425 WebKit::WebScreenInfo* results) {
1421 GdkWindow* gdk_window = 1426 GdkWindow* gdk_window =
1422 gdk_display_get_default_group(gdk_display_get_default()); 1427 gdk_display_get_default_group(gdk_display_get_default());
1423 content::GetScreenInfoFromNativeWindow(gdk_window, results); 1428 content::GetScreenInfoFromNativeWindow(gdk_window, results);
1424 } 1429 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698