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

Side by Side Diff: components/scheduler/renderer/renderer_scheduler_impl.h

Issue 1165853002: Pipe impl_latency_takes_priority_ to the RenderScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "components/scheduler/child/idle_helper.h" 10 #include "components/scheduler/child/idle_helper.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 base::TimeTicks estimated_next_frame_begin_; 199 base::TimeTicks estimated_next_frame_begin_;
200 200
201 // The incoming_signals_lock_ mutex protects access to all variables in the 201 // The incoming_signals_lock_ mutex protects access to all variables in the
202 // (contiguous) block below. 202 // (contiguous) block below.
203 mutable base::Lock incoming_signals_lock_; 203 mutable base::Lock incoming_signals_lock_;
204 base::TimeTicks last_input_signal_time_; 204 base::TimeTicks last_input_signal_time_;
205 int pending_main_thread_input_event_count_; 205 int pending_main_thread_input_event_count_;
206 bool awaiting_touch_start_response_; 206 bool awaiting_touch_start_response_;
207 207
208 bool begin_main_frame_on_critical_path_;
209
208 // Variables in this (contiguous) block are only accessed from the compositor 210 // Variables in this (contiguous) block are only accessed from the compositor
209 // thread. 211 // thread.
210 blink::WebInputEvent::Type last_input_type_; 212 blink::WebInputEvent::Type last_input_type_;
211 213
212 PollableThreadSafeFlag policy_may_need_update_; 214 PollableThreadSafeFlag policy_may_need_update_;
213 int timer_queue_suspend_count_; // TIMER_TASK_QUEUE suspended if non-zero. 215 int timer_queue_suspend_count_; // TIMER_TASK_QUEUE suspended if non-zero.
214 216
215 bool in_idle_period_; 217 bool in_idle_period_;
216 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 218 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
217 219
218 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 220 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
219 }; 221 };
220 222
221 } // namespace scheduler 223 } // namespace scheduler
222 224
223 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 225 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698