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

Unified Diff: ui/compositor/compositor.h

Issue 2870023002: Allow compositor locks to extend timeout. (Closed)
Patch Set: Rebase. Created 3 years, 7 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 | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index cf4e6d1edcca31e5f937630465f950da224c02cf..59396ee0051e9022f49276bdadb8669d7ee7b85b 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -365,6 +365,10 @@ class COMPOSITOR_EXPORT Compositor
int activated_frame_count() const { return activated_frame_count_; }
float refresh_rate() const { return refresh_rate_; }
+ void set_allow_locks_to_extend_timeout(bool allowed) {
+ allow_locks_to_extend_timeout_ = allowed;
+ }
+
private:
friend class base::RefCounted<Compositor>;
@@ -418,6 +422,11 @@ class COMPOSITOR_EXPORT Compositor
gfx::ColorSpace output_color_space_;
gfx::ColorSpace blending_color_space_;
+ // The estimated time that the locks will timeout.
+ base::TimeTicks scheduled_timeout_;
+ // If true, the |scheduled_timeout_| might be recalculated and extended.
+ bool allow_locks_to_extend_timeout_;
+
base::WeakPtrFactory<Compositor> weak_ptr_factory_;
base::WeakPtrFactory<Compositor> lock_timeout_weak_ptr_factory_;
« no previous file with comments | « no previous file | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698