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

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

Issue 10798006: Implement WebCompositorOutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 4 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 void RenderWidgetHostImpl::NotifyScreenInfoChanged() { 1063 void RenderWidgetHostImpl::NotifyScreenInfoChanged() {
1064 WebKit::WebScreenInfo screen_info; 1064 WebKit::WebScreenInfo screen_info;
1065 GetWebScreenInfo(&screen_info); 1065 GetWebScreenInfo(&screen_info);
1066 Send(new ViewMsg_ScreenInfoChanged(GetRoutingID(), screen_info)); 1066 Send(new ViewMsg_ScreenInfoChanged(GetRoutingID(), screen_info));
1067 } 1067 }
1068 1068
1069 void RenderWidgetHostImpl::SetDeviceScaleFactor(float scale) { 1069 void RenderWidgetHostImpl::SetDeviceScaleFactor(float scale) {
1070 Send(new ViewMsg_SetDeviceScaleFactor(GetRoutingID(), scale)); 1070 Send(new ViewMsg_SetDeviceScaleFactor(GetRoutingID(), scale));
1071 } 1071 }
1072 1072
1073 void RenderWidgetHostImpl::UpdateVSyncParameters(base::TimeTicks timebase,
1074 base::TimeDelta interval) {
1075 Send(new ViewMsg_UpdateVSyncParameters(GetRoutingID(), timebase, interval));
1076 }
1077
1073 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status, 1078 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status,
1074 int exit_code) { 1079 int exit_code) {
1075 // Clearing this flag causes us to re-create the renderer when recovering 1080 // Clearing this flag causes us to re-create the renderer when recovering
1076 // from a crashed renderer. 1081 // from a crashed renderer.
1077 renderer_initialized_ = false; 1082 renderer_initialized_ = false;
1078 1083
1079 // Must reset these to ensure that mouse move/wheel events work with a new 1084 // Must reset these to ensure that mouse move/wheel events work with a new
1080 // renderer. 1085 // renderer.
1081 mouse_move_pending_ = false; 1086 mouse_move_pending_ = false;
1082 next_mouse_move_.reset(); 1087 next_mouse_move_.reset();
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 // indicate that no callback is in progress (i.e. without this line 1990 // indicate that no callback is in progress (i.e. without this line
1986 // DelayedAutoResized will not get called again). 1991 // DelayedAutoResized will not get called again).
1987 new_auto_size_.SetSize(0, 0); 1992 new_auto_size_.SetSize(0, 0);
1988 if (!should_auto_resize_) 1993 if (!should_auto_resize_)
1989 return; 1994 return;
1990 1995
1991 OnRenderAutoResized(new_size); 1996 OnRenderAutoResized(new_size);
1992 } 1997 }
1993 1998
1994 } // namespace content 1999 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698