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

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

Issue 692483002: Hook up DidReceiveInputEvent to the blink scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respoding 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_manager.cc
diff --git a/content/renderer/input/input_handler_manager.cc b/content/renderer/input/input_handler_manager.cc
index a5433de2a302265f09b78d569b5825c49060f79b..2b98ba3b1f82eec0bc259bc452c3f226acd9cd00 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,12 @@ void InputHandlerManager::DidStopFlinging(int routing_id) {
client_->DidStopFlinging(routing_id);
}
+void InputHandlerManager::DidReceiveInputEvent() {
+ renderer_scheduler_->DidReceiveInputEventOnCompositorThread();
+}
+
+void InputHandlerManager::DidAnimateForInput() {
+ renderer_scheduler_->DidAnimateForInputOnCompositorThread();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698