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

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

Issue 1386933002: Cleanup timing state machine (Closed) Base URL: https://skia.googlesource.com/skia.git@vb2
Patch Set: rebase Created 5 years, 2 months 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
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 8
9 #ifndef VisualLightweightBenchModule_DEFINED 9 #ifndef VisualLightweightBenchModule_DEFINED
10 #define VisualLightweightBenchModule_DEFINED 10 #define VisualLightweightBenchModule_DEFINED
(...skipping 29 matching lines...) Expand all
40 inline void renderFrame(SkCanvas*); 40 inline void renderFrame(SkCanvas*);
41 41
42 struct Record { 42 struct Record {
43 SkTArray<double> fMeasurements; 43 SkTArray<double> fMeasurements;
44 }; 44 };
45 int fCurrentSample; 45 int fCurrentSample;
46 SkTArray<Record> fRecords; 46 SkTArray<Record> fRecords;
47 SkAutoTDelete<VisualBenchmarkStream> fBenchmarkStream; 47 SkAutoTDelete<VisualBenchmarkStream> fBenchmarkStream;
48 SkAutoTUnref<Benchmark> fBenchmark; 48 SkAutoTUnref<Benchmark> fBenchmark;
49 TimingStateMachine fTSM; 49 TimingStateMachine fTSM;
50 bool fHasBeenReset;
50 51
51 // support framework 52 // support framework
52 SkAutoTUnref<VisualBench> fOwner; 53 SkAutoTUnref<VisualBench> fOwner;
53 SkAutoTDelete<ResultsWriter> fResults; 54 SkAutoTDelete<ResultsWriter> fResults;
54 55
55 typedef VisualModule INHERITED; 56 typedef VisualModule INHERITED;
56 }; 57 };
57 58
58 #endif 59 #endif
OLDNEW
« no previous file with comments | « tools/VisualBench/VisualInteractiveModule.cpp ('k') | tools/VisualBench/VisualLightweightBenchModule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698