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

Unified Diff: content/renderer/input/main_thread_event_queue.h

Issue 2846333002: Add a BeginMainFrame fallback to MainThreadEventQueue. (Closed)
Patch Set: Fix tests Created 3 years, 8 months 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 | « no previous file | content/renderer/input/main_thread_event_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/main_thread_event_queue.h
diff --git a/content/renderer/input/main_thread_event_queue.h b/content/renderer/input/main_thread_event_queue.h
index 5001f046fd07f24b6ffa4b14419d12e0e52dacb9..8e1e53746b6c51912eef2f6d9598b5fb9f0e1d23 100644
--- a/content/renderer/input/main_thread_event_queue.h
+++ b/content/renderer/input/main_thread_event_queue.h
@@ -118,6 +118,11 @@ class CONTENT_EXPORT MainThreadEventQueue
bool IsRafAlignedInputDisabled() const;
bool IsRafAlignedEvent(
const std::unique_ptr<MainThreadEventQueueTask>& item) const;
+ void RafFallbackTimerFired();
+
+ void set_use_raf_fallback_timer(bool use_timer) {
+ use_raf_fallback_timer_ = use_timer;
+ }
friend class QueuedWebInputEvent;
friend class MainThreadEventQueueTest;
@@ -149,6 +154,8 @@ class CONTENT_EXPORT MainThreadEventQueue
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
blink::scheduler::RendererScheduler* renderer_scheduler_;
+ base::OneShotTimer raf_fallback_timer_;
+ bool use_raf_fallback_timer_;
DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue);
};
« no previous file with comments | « no previous file | content/renderer/input/main_thread_event_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698