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

Side by Side Diff: mojo/services/html_viewer/weblayertreeview_impl.cc

Issue 870363005: Remove scroll_delta flooring hack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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
« no previous file with comments | « mojo/services/html_viewer/weblayertreeview_impl.h ('k') | ui/compositor/compositor.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/services/html_viewer/weblayertreeview_impl.h" 5 #include "mojo/services/html_viewer/weblayertreeview_impl.h"
6 6
7 #include "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "cc/blink/web_layer_impl.h" 8 #include "cc/blink/web_layer_impl.h"
9 #include "cc/layers/layer.h" 9 #include "cc/layers/layer.h"
10 #include "cc/output/begin_frame_args.h" 10 #include "cc/output/begin_frame_args.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 blink::WebBeginFrameArgs web_begin_frame_args( 73 blink::WebBeginFrameArgs web_begin_frame_args(
74 frame_time_sec, deadline_sec, interval_sec); 74 frame_time_sec, deadline_sec, interval_sec);
75 widget_->beginFrame(web_begin_frame_args); 75 widget_->beginFrame(web_begin_frame_args);
76 } 76 }
77 77
78 void WebLayerTreeViewImpl::Layout() { 78 void WebLayerTreeViewImpl::Layout() {
79 widget_->layout(); 79 widget_->layout();
80 } 80 }
81 81
82 void WebLayerTreeViewImpl::ApplyViewportDeltas( 82 void WebLayerTreeViewImpl::ApplyViewportDeltas(
83 const gfx::Vector2d& inner_delta, 83 const gfx::Vector2dF& inner_delta,
84 const gfx::Vector2d& outer_delta, 84 const gfx::Vector2dF& outer_delta,
85 const gfx::Vector2dF& elastic_overscroll_delta, 85 const gfx::Vector2dF& elastic_overscroll_delta,
86 float page_scale, 86 float page_scale,
87 float top_controls_delta) { 87 float top_controls_delta) {
88 widget_->applyViewportDeltas( 88 widget_->applyViewportDeltas(
89 inner_delta, 89 inner_delta,
90 outer_delta, 90 outer_delta,
91 elastic_overscroll_delta, 91 elastic_overscroll_delta,
92 page_scale, 92 page_scale,
93 top_controls_delta); 93 top_controls_delta);
94 } 94 }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 base::Bind(&WebLayerTreeViewImpl::DidCreateSurfaceOnMainThread, 237 base::Bind(&WebLayerTreeViewImpl::DidCreateSurfaceOnMainThread,
238 main_thread_bound_weak_ptr_, 238 main_thread_bound_weak_ptr_,
239 id)); 239 id));
240 } 240 }
241 241
242 void WebLayerTreeViewImpl::DidCreateSurfaceOnMainThread(cc::SurfaceId id) { 242 void WebLayerTreeViewImpl::DidCreateSurfaceOnMainThread(cc::SurfaceId id) {
243 view_->SetSurfaceId(mojo::SurfaceId::From(id)); 243 view_->SetSurfaceId(mojo::SurfaceId::From(id));
244 } 244 }
245 245
246 } // namespace html_viewer 246 } // namespace html_viewer
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/weblayertreeview_impl.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698