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

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

Issue 1310153005: Minor tweak to visual bench timing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | tools/VisualBench/VisualBench.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 8
9 #ifndef VisualBench_DEFINED 9 #ifndef VisualBench_DEFINED
10 #define VisualBench_DEFINED 10 #define VisualBench_DEFINED
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void resetTimingState(); 86 void resetTimingState();
87 void postDraw(SkCanvas*); 87 void postDraw(SkCanvas*);
88 void recordMeasurement(); 88 void recordMeasurement();
89 89
90 struct Record { 90 struct Record {
91 SkTArray<double> fMeasurements; 91 SkTArray<double> fMeasurements;
92 }; 92 };
93 93
94 int fCurrentSample; 94 int fCurrentSample;
95 int fCurrentFrame; 95 int fCurrentFrame;
96 int fFlushes;
97 int fLoops; 96 int fLoops;
98 SkTArray<Record> fRecords; 97 SkTArray<Record> fRecords;
99 WallTimer fTimer; 98 WallTimer fTimer;
100 State fState; 99 State fState;
101 SkAutoTDelete<VisualBenchmarkStream> fBenchmarkStream; 100 SkAutoTDelete<VisualBenchmarkStream> fBenchmarkStream;
102 SkAutoTUnref<Benchmark> fBenchmark; 101 SkAutoTUnref<Benchmark> fBenchmark;
103 102
104 // support framework 103 // support framework
105 SkAutoTUnref<SkSurface> fSurface; 104 SkAutoTUnref<SkSurface> fSurface;
106 SkAutoTUnref<GrContext> fContext; 105 SkAutoTUnref<GrContext> fContext;
107 SkAutoTUnref<GrRenderTarget> fRenderTarget; 106 SkAutoTUnref<GrRenderTarget> fRenderTarget;
108 AttachmentInfo fAttachmentInfo; 107 AttachmentInfo fAttachmentInfo;
109 SkAutoTUnref<const GrGLInterface> fInterface; 108 SkAutoTUnref<const GrGLInterface> fInterface;
110 SkAutoTDelete<ResultsWriter> fResults; 109 SkAutoTDelete<ResultsWriter> fResults;
111 110
112 typedef SkOSWindow INHERITED; 111 typedef SkOSWindow INHERITED;
113 }; 112 };
114 113
115 #endif 114 #endif
OLDNEW
« no previous file with comments | « no previous file | tools/VisualBench/VisualBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698