Chromium Code Reviews| Index: ui/compositor/compositor.h |
| diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h |
| index cf4e6d1edcca31e5f937630465f950da224c02cf..64bb11f4e6bb3b0931ffd6415bfdfb71593d4f1c 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 be timedout. |
|
danakj
2017/05/09 15:49:47
will time out.
|
| + 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_; |