Index: content/renderer/input/input_handler_manager.cc |
diff --git a/content/renderer/input/input_handler_manager.cc b/content/renderer/input/input_handler_manager.cc |
index a5433de2a302265f09b78d569b5825c49060f79b..17b05e0e8ea8fb0bd10e9f94786a3dcf9189919a 100644 |
--- a/content/renderer/input/input_handler_manager.cc |
+++ b/content/renderer/input/input_handler_manager.cc |
@@ -11,6 +11,7 @@ |
#include "content/renderer/input/input_event_filter.h" |
#include "content/renderer/input/input_handler_manager_client.h" |
#include "content/renderer/input/input_handler_wrapper.h" |
+#include "content/renderer/scheduler/renderer_scheduler.h" |
using blink::WebInputEvent; |
@@ -36,9 +37,11 @@ InputEventAckState InputEventDispositionToAck( |
InputHandlerManager::InputHandlerManager( |
const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy, |
- InputHandlerManagerClient* client) |
+ InputHandlerManagerClient* client, |
+ RendererScheduler* renderer_scheduler) |
: message_loop_proxy_(message_loop_proxy), |
- client_(client) { |
+ client_(client), |
+ renderer_scheduler_(renderer_scheduler) { |
DCHECK(client_); |
client_->SetBoundHandler(base::Bind(&InputHandlerManager::HandleInputEvent, |
base::Unretained(this))); |
@@ -131,4 +134,13 @@ void InputHandlerManager::DidStopFlinging(int routing_id) { |
client_->DidStopFlinging(routing_id); |
} |
+void InputHandlerManager::DidReceiveInputEvent( |
+ blink::WebInputEvent::Type type) { |
+ renderer_scheduler_->DidReceiveInputEventOnCompositorThread(type); |
+} |
+ |
+void InputHandlerManager::DidAnimateForInput() { |
+ renderer_scheduler_->DidAnimateForInputOnCompositorThread(); |
+} |
+ |
} // namespace content |