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

Unified Diff: content/renderer/scheduler/renderer_scheduler_impl.h

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
Index: content/renderer/scheduler/renderer_scheduler_impl.h
diff --git a/content/renderer/scheduler/renderer_scheduler_impl.h b/content/renderer/scheduler/renderer_scheduler_impl.h
index e45379be2ed77f0feff5099156fe8510191bffc9..ee50eb0e40007e4529589b9c1744c407c3410707 100644
--- a/content/renderer/scheduler/renderer_scheduler_impl.h
+++ b/content/renderer/scheduler/renderer_scheduler_impl.h
@@ -28,7 +28,9 @@ class CONTENT_EXPORT RendererSchedulerImpl : public RendererScheduler {
scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override;
void WillBeginFrame(const cc::BeginFrameArgs& args) override;
void DidCommitFrameToCompositor() override;
- void DidReceiveInputEventOnCompositorThread() override;
+ void DidReceiveInputEventOnCompositorThread(
+ blink::WebInputEvent::Type type) override;
+ void DidAnimateForInputOnCompositorThread() override;
bool ShouldYieldForHighPriorityWork() override;
void Shutdown() override;
@@ -91,6 +93,9 @@ class CONTENT_EXPORT RendererSchedulerImpl : public RendererScheduler {
// Updates the scheduler policy. Must be called from the main thread.
void UpdatePolicy();
+ // An input event of some sort happened, the policy may need updating.
+ void UpdateForInputEvent();
+
// Start and end an idle period.
void StartIdlePeriod();
void EndIdlePeriod();
« no previous file with comments | « content/renderer/scheduler/renderer_scheduler.h ('k') | content/renderer/scheduler/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698