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

Side by Side Diff: tools/PictureBenchmark.h

Issue 344213003: Move BenchTimer to tools as Timer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fixes Created 6 years, 6 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 2012 Google Inc. 2 * Copyright 2012 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 PictureBenchmark_DEFINED 8 #ifndef PictureBenchmark_DEFINED
9 #define PictureBenchmark_DEFINED 9 #define PictureBenchmark_DEFINED
10 10
11 #include "PictureRenderer.h" 11 #include "PictureRenderer.h"
12 #include "PictureResultsWriter.h" 12 #include "PictureResultsWriter.h"
13 #include "SkTypes.h" 13 #include "SkTypes.h"
14 #include "TimerData.h" 14 #include "TimerData.h"
15 15
16 class BenchTimer;
17 class SkPicture; 16 class SkPicture;
17 class Timer;
18 18
19 namespace sk_tools { 19 namespace sk_tools {
20 20
21 class PictureBenchmark { 21 class PictureBenchmark {
22 public: 22 public:
23 PictureBenchmark(); 23 PictureBenchmark();
24 24
25 ~PictureBenchmark(); 25 ~PictureBenchmark();
26 26
27 /** 27 /**
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 int fRepeats; 60 int fRepeats;
61 PictureRenderer* fRenderer; 61 PictureRenderer* fRenderer;
62 TimerData::Result fTimerResult; 62 TimerData::Result fTimerResult;
63 uint32_t fTimerTypes; // bitfield of TimerData::TimerFlags values 63 uint32_t fTimerTypes; // bitfield of TimerData::TimerFlags values
64 bool fTimeIndividualTiles; 64 bool fTimeIndividualTiles;
65 bool fPurgeDecodedTex; 65 bool fPurgeDecodedTex;
66 bool fPreprocess; 66 bool fPreprocess;
67 67
68 PictureResultsWriter* fWriter; 68 PictureResultsWriter* fWriter;
69 69
70 BenchTimer* setupTimer(bool useGLTimer = true); 70 Timer* setupTimer(bool useGLTimer = true);
71 }; 71 };
72 72
73 } 73 }
74 74
75 #endif // PictureBenchmark_DEFINED 75 #endif // PictureBenchmark_DEFINED
OLDNEW
« no previous file with comments | « tools/DumpRecord.cpp ('k') | tools/PictureBenchmark.cpp » ('j') | tools/timer/GpuTimer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698