Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Side by Side Diff: tools/VisualBench/TimingStateMachine.h

Issue 1444473003: Make visualbench timing continuous for no-reset mode (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_no_reset
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/VisualBench/TimingStateMachine.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | tools/VisualBench/TimingStateMachine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698