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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 12077046: Plumb an overscroll callback form the compositor to the Android UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 27c51ca43ab2b8b2f823c10db169ad4b1b353694..e91b27066d73e94d3c494ecbfc78c0ca817d1b7d 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1519,6 +1519,7 @@ void RenderWidgetHostImpl::OnSwapCompositorFrame(
if (view_) {
view_->UpdateFrameInfo(
gfx::ToRoundedVector2d(scroll_offset),
+ gfx::ToRoundedVector2d(frame.metadata.unused_scroll_delta),
frame.metadata.page_scale_factor,
frame.metadata.min_page_scale_factor,
frame.metadata.max_page_scale_factor,

Powered by Google App Engine
This is Rietveld 408576698