Add include to fix build
BUG=
Review URL: https://codereview.chromium.org/19516006
git-svn-id: http://skia.googlecode.com/svn/trunk@10203 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/bbh_shootout.cpp b/tools/bbh_shootout.cpp
index b0ef852..682099b 100644
--- a/tools/bbh_shootout.cpp
+++ b/tools/bbh_shootout.cpp
@@ -265,7 +265,7 @@
int argc,
char **argv,
const BenchmarkControl& benchControl,
- SkTArray<Histogram>& histogram) {
+ Histogram** histogram) {
static const SkString timeFormat("%f");
TimerData timerData(timeFormat, timeFormat);
@@ -280,8 +280,8 @@
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(
@@ -320,14 +320,14 @@
return -1;
}
- static SkTArray<Histogram> histograms[kNumBenchmarks];
+ Histogram* histograms[kNumBenchmarks];
for (size_t i = 0; i < kNumBenchmarks; ++i) {
- histograms[i].reset(argc - 1);
+ 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);
}