| 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 | 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 Loading... |
| 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 |
| OLD | NEW |