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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 525523003: Remove two unnecessary params in ViewHostMsg_UpdateRect_Params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index 580c6c55965941c446e4ce3a9f032ec07b3d1123..3c987f2a07430bf1d86c300a067895d5c316ccf2 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -70,6 +70,10 @@ gfx::Rect RenderWidgetHostViewChildFrame::GetViewBounds() const {
return rect;
}
+gfx::Vector2dF RenderWidgetHostViewChildFrame::GetLastScrollOffset() const {
+ return last_scroll_offset_;
+}
+
gfx::NativeView RenderWidgetHostViewChildFrame::GetNativeView() const {
NOTREACHED();
return NULL;
@@ -214,6 +218,7 @@ void RenderWidgetHostViewChildFrame::AcceleratedSurfacePostSubBuffer(
void RenderWidgetHostViewChildFrame::OnSwapCompositorFrame(
uint32 output_surface_id,
scoped_ptr<cc::CompositorFrame> frame) {
+ last_scroll_offset_ = frame->metadata.root_scroll_offset;
if (frame_connector_) {
frame_connector_->ChildFrameCompositorFrameSwapped(
output_surface_id,

Powered by Google App Engine
This is Rietveld 408576698