| OLD | NEW |
| 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 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void setTimeIndividualTiles(bool indiv) { fTimeIndividualTiles = indiv; } | 42 void setTimeIndividualTiles(bool indiv) { fTimeIndividualTiles = indiv; } |
| 43 bool timeIndividualTiles() const { return fTimeIndividualTiles; } | 43 bool timeIndividualTiles() const { return fTimeIndividualTiles; } |
| 44 | 44 |
| 45 void setPurgeDecodedTex(bool purgeDecodedTex) { fPurgeDecodedTex = purgeDeco
dedTex; } | 45 void setPurgeDecodedTex(bool purgeDecodedTex) { fPurgeDecodedTex = purgeDeco
dedTex; } |
| 46 bool purgeDecodedText() const { return fPurgeDecodedTex; } | 46 bool purgeDecodedText() const { return fPurgeDecodedTex; } |
| 47 | 47 |
| 48 void setPreprocess(bool preprocess) { fPreprocess = preprocess; } | 48 void setPreprocess(bool preprocess) { fPreprocess = preprocess; } |
| 49 bool preprocess() const { return fPreprocess; } | 49 bool preprocess() const { return fPreprocess; } |
| 50 | 50 |
| 51 PictureRenderer* setRenderer(PictureRenderer*); | 51 PictureRenderer* setRenderer(PictureRenderer*); |
| 52 PictureRenderer* renderer() { return fRenderer; } |
| 52 | 53 |
| 53 void setTimerResultType(TimerData::Result resultType) { fTimerResult = resul
tType; } | 54 void setTimerResultType(TimerData::Result resultType) { fTimerResult = resul
tType; } |
| 54 | 55 |
| 55 void setTimersToShow(bool wall, bool truncatedWall, bool cpu, bool truncated
Cpu, bool gpu); | 56 void setTimersToShow(bool wall, bool truncatedWall, bool cpu, bool truncated
Cpu, bool gpu); |
| 56 | 57 |
| 57 void setWriter(PictureResultsWriter* writer) { fWriter = writer; } | 58 void setWriter(PictureResultsWriter* writer) { fWriter = writer; } |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 int fRepeats; | 61 int fRepeats; |
| 61 PictureRenderer* fRenderer; | 62 PictureRenderer* fRenderer; |
| 62 TimerData::Result fTimerResult; | 63 TimerData::Result fTimerResult; |
| 63 uint32_t fTimerTypes; // bitfield of TimerData::TimerFlags values | 64 uint32_t fTimerTypes; // bitfield of TimerData::TimerFlags values |
| 64 bool fTimeIndividualTiles; | 65 bool fTimeIndividualTiles; |
| 65 bool fPurgeDecodedTex; | 66 bool fPurgeDecodedTex; |
| 66 bool fPreprocess; | 67 bool fPreprocess; |
| 67 | 68 |
| 68 PictureResultsWriter* fWriter; | 69 PictureResultsWriter* fWriter; |
| 69 | 70 |
| 70 Timer* setupTimer(bool useGLTimer = true); | 71 Timer* setupTimer(bool useGLTimer = true); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } | 74 } |
| 74 | 75 |
| 75 #endif // PictureBenchmark_DEFINED | 76 #endif // PictureBenchmark_DEFINED |
| OLD | NEW |