| 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 THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ |
| 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ | 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER
_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 virtual void SetTopLevelBlameContext( | 171 virtual void SetTopLevelBlameContext( |
| 172 base::trace_event::BlameContext* blame_context) = 0; | 172 base::trace_event::BlameContext* blame_context) = 0; |
| 173 | 173 |
| 174 // The renderer scheduler maintains an estimated RAIL mode[1]. This observer | 174 // The renderer scheduler maintains an estimated RAIL mode[1]. This observer |
| 175 // can be used to get notified when the mode changes. The observer will be | 175 // can be used to get notified when the mode changes. The observer will be |
| 176 // called on the main thread and must outlive this class. | 176 // called on the main thread and must outlive this class. |
| 177 // [1] | 177 // [1] |
| 178 // https://developers.google.com/web/tools/chrome-devtools/profile/evaluate-pe
rformance/rail | 178 // https://developers.google.com/web/tools/chrome-devtools/profile/evaluate-pe
rformance/rail |
| 179 virtual void SetRAILModeObserver(RAILModeObserver* observer) = 0; | 179 virtual void SetRAILModeObserver(RAILModeObserver* observer) = 0; |
| 180 | 180 |
| 181 virtual bool ShouldForceEventsNonBlockingForUnresponsiveMainThread() |
| 182 const = 0; |
| 183 |
| 181 protected: | 184 protected: |
| 182 RendererScheduler(); | 185 RendererScheduler(); |
| 183 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); | 186 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); |
| 184 }; | 187 }; |
| 185 | 188 |
| 186 } // namespace scheduler | 189 } // namespace scheduler |
| 187 } // namespace blink | 190 } // namespace blink |
| 188 | 191 |
| 189 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU
LER_H_ | 192 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU
LER_H_ |
| OLD | NEW |