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/PictureBenchmark.cpp

Issue 254093002: Increase picture bench inner loop iteration to 10 for testing number stableness. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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 | no next file » | 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 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698