| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 5 #ifndef CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
| 13 #include "cc/output/begin_frame_args.h" | 13 #include "cc/output/begin_frame_args.h" |
| 14 #include "cc/scheduler/commit_earlyout_reason.h" | 14 #include "cc/scheduler/commit_earlyout_reason.h" |
| 15 #include "cc/scheduler/draw_result.h" | 15 #include "cc/scheduler/draw_result.h" |
| 16 #include "cc/scheduler/scheduler_settings.h" | 16 #include "cc/scheduler/scheduler_settings.h" |
| 17 #include "cc/tiles/tile_priority.h" | 17 #include "cc/tiles/tile_priority.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 namespace trace_event { | 20 namespace trace_event { |
| 21 class ConvertableToTraceFormat; | 21 class ConvertableToTraceFormat; |
| 22 class TracedValue; | 22 class TracedValue; |
| 23 } | 23 } |
| 24 class Value; | |
| 25 } | 24 } |
| 26 | 25 |
| 27 namespace cc { | 26 namespace cc { |
| 28 | 27 |
| 29 enum class ScrollHandlerState { | 28 enum class ScrollHandlerState { |
| 30 SCROLL_AFFECTS_SCROLL_HANDLER, | 29 SCROLL_AFFECTS_SCROLL_HANDLER, |
| 31 SCROLL_DOES_NOT_AFFECT_SCROLL_HANDLER, | 30 SCROLL_DOES_NOT_AFFECT_SCROLL_HANDLER, |
| 32 }; | 31 }; |
| 33 const char* ScrollHandlerStateToString(ScrollHandlerState state); | 32 const char* ScrollHandlerStateToString(ScrollHandlerState state); |
| 34 | 33 |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 bool did_draw_in_last_frame_; | 344 bool did_draw_in_last_frame_; |
| 346 bool did_submit_in_last_frame_; | 345 bool did_submit_in_last_frame_; |
| 347 | 346 |
| 348 private: | 347 private: |
| 349 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 348 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
| 350 }; | 349 }; |
| 351 | 350 |
| 352 } // namespace cc | 351 } // namespace cc |
| 353 | 352 |
| 354 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 353 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
| OLD | NEW |