| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef TimingStateMachine_DEFINED | 8 #ifndef TimingStateMachine_DEFINED |
| 9 #define TimingStateMachine_DEFINED | 9 #define TimingStateMachine_DEFINED |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 private: | 53 private: |
| 54 enum State { | 54 enum State { |
| 55 kPreWarm_State, | 55 kPreWarm_State, |
| 56 kTiming_State, | 56 kTiming_State, |
| 57 }; | 57 }; |
| 58 enum InnerState { | 58 enum InnerState { |
| 59 kTuning_InnerState, | 59 kTuning_InnerState, |
| 60 kTiming_InnerState, | 60 kTiming_InnerState, |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 inline double elapsed(); | |
| 64 void resetTimingState(); | |
| 65 void recordMeasurement(); | |
| 66 | |
| 67 int fCurrentFrame; | 63 int fCurrentFrame; |
| 68 int fLoops; | 64 int fLoops; |
| 69 double fLastMeasurement; | 65 double fLastMeasurement; |
| 70 double fStartTime; | 66 double fStartTime; |
| 71 State fState; | 67 State fState; |
| 72 InnerState fInnerState; | 68 InnerState fInnerState; |
| 73 }; | 69 }; |
| 74 | 70 |
| 75 #endif | 71 #endif |
| OLD | NEW |