| 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 #include "content/renderer/scheduler/task_queue_manager.h" | 5 #include "content/renderer/scheduler/task_queue_manager.h" |
| 6 | 6 |
| 7 #include <queue> | 7 #include <queue> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| 11 #include "base/debug/trace_event_argument.h" | 11 #include "base/trace_event/trace_event_argument.h" |
| 12 #include "cc/test/test_now_source.h" | 12 #include "cc/test/test_now_source.h" |
| 13 #include "content/renderer/scheduler/task_queue_selector.h" | 13 #include "content/renderer/scheduler/task_queue_selector.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 const int64_t kMaxTimeTicks = std::numeric_limits<int64>::max(); | 16 const int64_t kMaxTimeTicks = std::numeric_limits<int64>::max(); |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 namespace internal { | 20 namespace internal { |
| 21 | 21 |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 state->EndArray(); | 455 state->EndArray(); |
| 456 state->BeginDictionary("selector"); | 456 state->BeginDictionary("selector"); |
| 457 selector_->AsValueInto(state.get()); | 457 selector_->AsValueInto(state.get()); |
| 458 state->EndDictionary(); | 458 state->EndDictionary(); |
| 459 if (should_run) | 459 if (should_run) |
| 460 state->SetInteger("selected_queue", selected_queue); | 460 state->SetInteger("selected_queue", selected_queue); |
| 461 return state; | 461 return state; |
| 462 } | 462 } |
| 463 | 463 |
| 464 } // namespace content | 464 } // namespace content |
| OLD | NEW |