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

Unified Diff: content/renderer/input/input_handler_wrapper.cc

Issue 692483002: Hook up DidReceiveInputEvent to the blink scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resonding to Sami's feedback Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/input/input_handler_wrapper.cc
diff --git a/content/renderer/input/input_handler_wrapper.cc b/content/renderer/input/input_handler_wrapper.cc
index 49b8af9e0fa6511c80c9ba9e4c6d6fde18b2dba3..00387d11f1c2f7dc9b0d9ac54fc30d2fa946432e 100644
--- a/content/renderer/input/input_handler_wrapper.cc
+++ b/content/renderer/input/input_handler_wrapper.cc
@@ -18,13 +18,13 @@ InputHandlerWrapper::InputHandlerWrapper(
const scoped_refptr<base::MessageLoopProxy>& main_loop,
const base::WeakPtr<cc::InputHandler>& input_handler,
const base::WeakPtr<RenderViewImpl>& render_view_impl,
- RendererScheduler* render_scheduler)
+ RendererScheduler* renderer_scheduler)
: input_handler_manager_(input_handler_manager),
routing_id_(routing_id),
input_handler_proxy_(input_handler.get(), this),
main_loop_(main_loop),
render_view_impl_(render_view_impl),
- render_scheduler_(render_scheduler) {
+ renderer_scheduler_(renderer_scheduler) {
DCHECK(input_handler);
}
@@ -61,8 +61,14 @@ void InputHandlerWrapper::DidStopFlinging() {
}
void InputHandlerWrapper::DidReceiveInputEvent() {
- if (render_scheduler_) {
- render_scheduler_->DidReceiveInputEvent();
+ if (renderer_scheduler_) {
+ renderer_scheduler_->DidReceiveInputEvent();
jdduke (slow) 2014/11/04 01:21:02 Nit: No braces necessary (also below).
alex clarke (OOO till 29th) 2014/11/04 01:49:06 I slightly prefer this style, because I've seen bu
+ }
+}
+
+void InputHandlerWrapper::DidAnimate() {
+ if (renderer_scheduler_) {
+ renderer_scheduler_->DidAnimate();
}
}

Powered by Google App Engine
This is Rietveld 408576698