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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 338 bool have_seen_a_begin_main_frame; | 338 bool have_seen_a_begin_main_frame; |
| 339 bool have_reported_blocking_intervention_in_current_policy; | 339 bool have_reported_blocking_intervention_in_current_policy; |
| 340 bool have_reported_blocking_intervention_since_navigation; | 340 bool have_reported_blocking_intervention_since_navigation; |
| 341 bool has_visible_render_widget_with_touch_handler; | 341 bool has_visible_render_widget_with_touch_handler; |
| 342 bool begin_frame_not_expected_soon; | 342 bool begin_frame_not_expected_soon; |
| 343 bool expensive_task_blocking_allowed; | 343 bool expensive_task_blocking_allowed; |
| 344 std::set<WebViewSchedulerImpl*> web_view_schedulers_; // Not owned. | 344 std::set<WebViewSchedulerImpl*> web_view_schedulers_; // Not owned. |
| 345 }; | 345 }; |
| 346 | 346 |
| 347 struct AnyThread { | 347 struct AnyThread { |
| 348 AnyThread(); | 348 AnyThread( |
| 349 const scoped_refptr<base::SingleThreadTaskRunner>& default_task_runner); | |
|
Sami
2016/03/23 11:33:16
nit: no need for const-ref (see https://codereview
beaudoin
2016/03/23 18:43:22
Done.
| |
| 349 ~AnyThread(); | 350 ~AnyThread(); |
| 350 | 351 |
| 351 base::TimeTicks last_idle_period_end_time; | 352 base::TimeTicks last_idle_period_end_time; |
| 352 base::TimeTicks rails_loading_priority_deadline; | 353 base::TimeTicks rails_loading_priority_deadline; |
| 353 base::TimeTicks fling_compositor_escalation_deadline; | 354 base::TimeTicks fling_compositor_escalation_deadline; |
| 354 UserModel user_model; | 355 UserModel user_model; |
| 355 bool awaiting_touch_start_response; | 356 bool awaiting_touch_start_response; |
| 356 bool in_idle_period; | 357 bool in_idle_period; |
| 357 bool begin_main_frame_on_critical_path; | 358 bool begin_main_frame_on_critical_path; |
| 358 bool last_gesture_was_compositor_driven; | 359 bool last_gesture_was_compositor_driven; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 409 | 410 |
| 410 PollableThreadSafeFlag policy_may_need_update_; | 411 PollableThreadSafeFlag policy_may_need_update_; |
| 411 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 412 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
| 412 | 413 |
| 413 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 414 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
| 414 }; | 415 }; |
| 415 | 416 |
| 416 } // namespace scheduler | 417 } // namespace scheduler |
| 417 | 418 |
| 418 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ | 419 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ |
| OLD | NEW |