summaryrefslogtreecommitdiff
path: root/libs/hwui/tests
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-04-04 17:29:15 -0700
committerHaibo Huang <hhb@google.com>2019-05-08 18:29:01 +0000
commit5eb2e9689877a623d37bcb76a30be84c4f0896cc (patch)
treec5a82a51f0324532b85c4d7074907a6bf8769bc0 /libs/hwui/tests
parent8ff4a5a5b510e724b25ac00369696594bb0c9fdc (diff)
Update to follow the new google benchmark API
Test: build Change-Id: Icc25b81e9b863c35c02c9673518fa4d30e9ae321
Diffstat (limited to 'libs/hwui/tests')
-rw-r--r--libs/hwui/tests/macrobench/TestSceneRunner.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/tests/macrobench/TestSceneRunner.cpp b/libs/hwui/tests/macrobench/TestSceneRunner.cpp
index 5f5a92e55bf2..adfae5bccebe 100644
--- a/libs/hwui/tests/macrobench/TestSceneRunner.cpp
+++ b/libs/hwui/tests/macrobench/TestSceneRunner.cpp
@@ -81,7 +81,7 @@ void outputBenchmarkReport(const TestScene::Info& info, const TestScene::Options
// mean and stddev which doesn't make sense for our usage
std::vector<BenchmarkReporter::Run> reports;
BenchmarkReporter::Run report;
- report.run_name = info.name;
+ report.run_name.function_name = info.name;
report.iterations = static_cast<int64_t>(opts.count);
report.real_accumulated_time = durationInS;
report.cpu_accumulated_time = durationInS;
@@ -94,8 +94,8 @@ void outputBenchmarkReport(const TestScene::Info& info, const TestScene::Options
// in that test case than percentiles.
if (!opts.renderOffscreen) {
for (auto& ri : REPORTS) {
- reports[0].run_name = info.name;
- reports[0].run_name += ri.suffix;
+ reports[0].run_name.function_name = info.name;
+ reports[0].run_name.function_name += ri.suffix;
durationInS = proxy->frameTimePercentile(ri.percentile) / 1000.0;
reports[0].real_accumulated_time = durationInS;
reports[0].cpu_accumulated_time = durationInS;