Slipping in a small bug fix for my previous patch
Review URL: https://codereview.chromium.org/19858002 git-svn-id: http://skia.googlecode.com/svn/trunk@10213 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
16acf75151
commit
0817fb6e1e
@ -265,7 +265,7 @@ static bool benchmark_loop(
|
||||
int argc,
|
||||
char **argv,
|
||||
const BenchmarkControl& benchControl,
|
||||
Histogram** histogram) {
|
||||
Histogram* histogram) {
|
||||
|
||||
static const SkString timeFormat("%f");
|
||||
TimerData timerData(timeFormat, timeFormat);
|
||||
@ -280,8 +280,8 @@ static bool benchmark_loop(
|
||||
benchControl.fFunction(benchControl.fType, benchControl.fTileSize, path, pic, &timer);
|
||||
timerData.appendTimes(&timer, argc - 1 == index);
|
||||
|
||||
histogram[index - 1]->fPath = path;
|
||||
histogram[index - 1]->fCpuTime = SkDoubleToScalar(timer.fCpu);
|
||||
histogram[index - 1].fPath = path;
|
||||
histogram[index - 1].fCpuTime = SkDoubleToScalar(timer.fCpu);
|
||||
}
|
||||
|
||||
const SkString timerResult = timerData.getResult(
|
||||
@ -321,14 +321,13 @@ int tool_main(int argc, char** argv) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Histogram* histograms[kNumBenchmarks];
|
||||
Histogram histograms[argc - 1][kNumBenchmarks];
|
||||
|
||||
for (size_t i = 0; i < kNumBenchmarks; ++i) {
|
||||
histograms[i] = SkNEW_ARRAY(Histogram, argc - 1);
|
||||
bool success = benchmark_loop(
|
||||
argc, argv,
|
||||
BenchmarkControl::Make(i),
|
||||
&histograms[i]);
|
||||
histograms[i]);
|
||||
if (!success) {
|
||||
SkDebugf("benchmark_loop failed at index %d", i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user