| 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_H_ | 5 #ifndef CC_SCHEDULER_SCHEDULER_H_ |
| 6 #define CC_SCHEDULER_SCHEDULER_H_ | 6 #define CC_SCHEDULER_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 void SetNeedsCommit(); | 68 void SetNeedsCommit(); |
| 69 | 69 |
| 70 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if | 70 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if |
| 71 // we are not visible. | 71 // we are not visible. |
| 72 void SetNeedsForcedCommit(); | 72 void SetNeedsForcedCommit(); |
| 73 | 73 |
| 74 void SetNeedsRedraw(); | 74 void SetNeedsRedraw(); |
| 75 | 75 |
| 76 void SetMainThreadNeedsLayerTextures(); | 76 void SetMainThreadNeedsLayerTextures(); |
| 77 | 77 |
| 78 void SetAnimateRequested(); |
| 79 |
| 78 // Like SetNeedsRedraw(), but ensures the draw will definitely happen even if | 80 // Like SetNeedsRedraw(), but ensures the draw will definitely happen even if |
| 79 // we are not visible. | 81 // we are not visible. |
| 80 void SetNeedsForcedRedraw(); | 82 void SetNeedsForcedRedraw(); |
| 81 | 83 |
| 82 void DidSwapUseIncompleteTile(); | 84 void DidSwapUseIncompleteTile(); |
| 83 | 85 |
| 84 void BeginFrameComplete(); | 86 void BeginFrameComplete(); |
| 85 void BeginFrameAborted(); | 87 void BeginFrameAborted(); |
| 86 | 88 |
| 87 void SetMaxFramesPending(int max); | 89 void SetMaxFramesPending(int max); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 scoped_ptr<FrameRateController> frame_rate_controller_; | 122 scoped_ptr<FrameRateController> frame_rate_controller_; |
| 121 SchedulerStateMachine state_machine_; | 123 SchedulerStateMachine state_machine_; |
| 122 bool inside_process_scheduled_actions_; | 124 bool inside_process_scheduled_actions_; |
| 123 | 125 |
| 124 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 126 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 125 }; | 127 }; |
| 126 | 128 |
| 127 } // namespace cc | 129 } // namespace cc |
| 128 | 130 |
| 129 #endif // CC_SCHEDULER_SCHEDULER_H_ | 131 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |