| 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 "platform/scheduler/renderer/renderer_scheduler_impl.h" | 5 #include "platform/scheduler/renderer/renderer_scheduler_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/stack_trace.h" | 8 #include "base/debug/stack_trace.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 // for it since these tasks are not user-provided work and they are only | 863 // for it since these tasks are not user-provided work and they are only |
| 864 // intended to run before the next task, not interrupt the tasks. | 864 // intended to run before the next task, not interrupt the tasks. |
| 865 switch (GetMainThreadOnly().current_use_case) { | 865 switch (GetMainThreadOnly().current_use_case) { |
| 866 case UseCase::COMPOSITOR_GESTURE: | 866 case UseCase::COMPOSITOR_GESTURE: |
| 867 case UseCase::NONE: | 867 case UseCase::NONE: |
| 868 return GetMainThreadOnly().touchstart_expected_soon; | 868 return GetMainThreadOnly().touchstart_expected_soon; |
| 869 | 869 |
| 870 case UseCase::MAIN_THREAD_GESTURE: | 870 case UseCase::MAIN_THREAD_GESTURE: |
| 871 case UseCase::MAIN_THREAD_CUSTOM_INPUT_HANDLING: | 871 case UseCase::MAIN_THREAD_CUSTOM_INPUT_HANDLING: |
| 872 case UseCase::SYNCHRONIZED_GESTURE: | 872 case UseCase::SYNCHRONIZED_GESTURE: |
| 873 return compositor_task_queue_->HasTaskToRunImmediately() || | 873 return compositor_task_queue_->HasPendingImmediateWork() || |
| 874 GetMainThreadOnly().touchstart_expected_soon; | 874 GetMainThreadOnly().touchstart_expected_soon; |
| 875 | 875 |
| 876 case UseCase::TOUCHSTART: | 876 case UseCase::TOUCHSTART: |
| 877 return true; | 877 return true; |
| 878 | 878 |
| 879 case UseCase::LOADING: | 879 case UseCase::LOADING: |
| 880 return false; | 880 return false; |
| 881 | 881 |
| 882 default: | 882 default: |
| 883 NOTREACHED(); | 883 NOTREACHED(); |
| (...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1997 case TimeDomainType::VIRTUAL: | 1997 case TimeDomainType::VIRTUAL: |
| 1998 return "virtual"; | 1998 return "virtual"; |
| 1999 default: | 1999 default: |
| 2000 NOTREACHED(); | 2000 NOTREACHED(); |
| 2001 return nullptr; | 2001 return nullptr; |
| 2002 } | 2002 } |
| 2003 } | 2003 } |
| 2004 | 2004 |
| 2005 } // namespace scheduler | 2005 } // namespace scheduler |
| 2006 } // namespace blink | 2006 } // namespace blink |
| OLD | NEW |