Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 334 bool have_seen_a_begin_main_frame; | 334 bool have_seen_a_begin_main_frame; |
| 335 bool have_reported_blocking_intervention_in_current_policy; | 335 bool have_reported_blocking_intervention_in_current_policy; |
| 336 bool have_reported_blocking_intervention_since_navigation; | 336 bool have_reported_blocking_intervention_since_navigation; |
| 337 bool has_visible_render_widget_with_touch_handler; | 337 bool has_visible_render_widget_with_touch_handler; |
| 338 bool begin_frame_not_expected_soon; | 338 bool begin_frame_not_expected_soon; |
| 339 bool expensive_task_blocking_allowed; | 339 bool expensive_task_blocking_allowed; |
| 340 std::set<WebViewSchedulerImpl*> web_view_schedulers_; // Not owned. | 340 std::set<WebViewSchedulerImpl*> web_view_schedulers_; // Not owned. |
| 341 }; | 341 }; |
| 342 | 342 |
| 343 struct AnyThread { | 343 struct AnyThread { |
| 344 AnyThread(); | 344 AnyThread(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); |
|
Sami
2016/02/12 12:39:43
Please call this |default_task_runner| too.
beaudoin
2016/03/16 20:47:38
Done.
| |
| 345 ~AnyThread(); | 345 ~AnyThread(); |
| 346 | 346 |
| 347 base::TimeTicks last_idle_period_end_time; | 347 base::TimeTicks last_idle_period_end_time; |
| 348 base::TimeTicks rails_loading_priority_deadline; | 348 base::TimeTicks rails_loading_priority_deadline; |
| 349 base::TimeTicks fling_compositor_escalation_deadline; | 349 base::TimeTicks fling_compositor_escalation_deadline; |
| 350 UserModel user_model; | 350 UserModel user_model; |
| 351 bool awaiting_touch_start_response; | 351 bool awaiting_touch_start_response; |
| 352 bool in_idle_period; | 352 bool in_idle_period; |
| 353 bool begin_main_frame_on_critical_path; | 353 bool begin_main_frame_on_critical_path; |
| 354 bool last_gesture_was_compositor_driven; | 354 bool last_gesture_was_compositor_driven; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 405 | 405 |
| 406 PollableThreadSafeFlag policy_may_need_update_; | 406 PollableThreadSafeFlag policy_may_need_update_; |
| 407 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 407 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
| 408 | 408 |
| 409 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 409 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 } // namespace scheduler | 412 } // namespace scheduler |
| 413 | 413 |
| 414 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ | 414 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ |
| OLD | NEW |