| 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 #include "SkBenchLogger.h" | 8 #include "SkBenchLogger.h" |
| 9 #include "BenchTimer.h" | 9 #include "BenchTimer.h" |
| 10 #include "PictureBenchmark.h" | 10 #include "PictureBenchmark.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 timerTypes &= ~TimerData::kGpu_Flag; | 108 timerTypes &= ~TimerData::kGpu_Flag; |
| 109 } | 109 } |
| 110 | 110 |
| 111 SkString timeFormat; | 111 SkString timeFormat; |
| 112 if (TimerData::kPerIter_Result == fTimerResult) { | 112 if (TimerData::kPerIter_Result == fTimerResult) { |
| 113 timeFormat = fRenderer->getPerIterTimeFormat(); | 113 timeFormat = fRenderer->getPerIterTimeFormat(); |
| 114 } else { | 114 } else { |
| 115 timeFormat = fRenderer->getNormalTimeFormat(); | 115 timeFormat = fRenderer->getNormalTimeFormat(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 static const int kNumInnerLoops = 5; | 118 static const int kNumInnerLoops = 10; |
| 119 int numOuterLoops = 1; | 119 int numOuterLoops = 1; |
| 120 int numInnerLoops = fRepeats; | 120 int numInnerLoops = fRepeats; |
| 121 | 121 |
| 122 if (TimerData::kPerIter_Result == fTimerResult && fRepeats > 1) { | 122 if (TimerData::kPerIter_Result == fTimerResult && fRepeats > 1) { |
| 123 // interpret this flag combination to mean: generate 'fRepeats' | 123 // interpret this flag combination to mean: generate 'fRepeats' |
| 124 // numbers by averaging each rendering 'kNumInnerLoops' times | 124 // numbers by averaging each rendering 'kNumInnerLoops' times |
| 125 numOuterLoops = fRepeats; | 125 numOuterLoops = fRepeats; |
| 126 numInnerLoops = kNumInnerLoops; | 126 numInnerLoops = kNumInnerLoops; |
| 127 } | 127 } |
| 128 | 128 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 numInnerLoops); | 269 numInnerLoops); |
| 270 result.append("\n"); | 270 result.append("\n"); |
| 271 this->logProgress(result.c_str()); | 271 this->logProgress(result.c_str()); |
| 272 #endif | 272 #endif |
| 273 } | 273 } |
| 274 | 274 |
| 275 fRenderer->end(); | 275 fRenderer->end(); |
| 276 } | 276 } |
| 277 | 277 |
| 278 } | 278 } |
| OLD | NEW |