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

Unified Diff: content/renderer/android/synchronous_compositor_output_surface.h

Issue 1782093002: Move fallback tick handling to compositor thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: content/renderer/android/synchronous_compositor_output_surface.h
diff --git a/content/renderer/android/synchronous_compositor_output_surface.h b/content/renderer/android/synchronous_compositor_output_surface.h
index 7509460ab7bcbcbe277f0d258c36ea7b56e29dbc..3e102348e9e91abb180017785b8d6653da313c45 100644
--- a/content/renderer/android/synchronous_compositor_output_surface.h
+++ b/content/renderer/android/synchronous_compositor_output_surface.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/callback.h"
+#include "base/cancelable_callback.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -103,6 +104,8 @@ class SynchronousCompositorOutputSurface
bool hardware_draw);
bool CalledOnValidThread() const;
+ void FallbackTickFired();
+
const int routing_id_;
SynchronousCompositorRegistry* const registry_; // unowned
bool registered_;
@@ -117,6 +120,8 @@ class SynchronousCompositorOutputSurface
bool did_swap_;
scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;
+ base::CancelableClosure fallback_tick_;
+
base::ThreadChecker thread_checker_;
DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);

Powered by Google App Engine
This is Rietveld 408576698