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

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: Adding some input event filter logic 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
« no previous file with comments | « content/renderer/input/input_handler_manager.h ('k') | content/renderer/input/input_handler_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/renderer/input/input_handler_manager.h ('k') | content/renderer/input/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698