OSDN Git Service

Private API became public...
authorElliott Hughes <enh@google.com>
Thu, 14 Dec 2017 06:06:56 +0000 (22:06 -0800)
committerElliott Hughes <enh@google.com>
Sat, 16 Dec 2017 00:24:25 +0000 (16:24 -0800)
...but is now automatically called by the Context constructor.

Bug: N/A
Test: builds
Change-Id: Ic78bc4561adfec5047ed45589b8b936c506bd2b2

libs/hwui/tests/macrobench/main.cpp

index dd4ca6e..616558f 100644 (file)
@@ -21,7 +21,6 @@
 #include "hwui/Typeface.h"
 #include "protos/hwui.pb.h"
 
-#include <../src/sysinfo.h>
 #include <benchmark/benchmark.h>
 #include <getopt.h>
 #include <pthread.h>
@@ -320,9 +319,6 @@ int main(int argc, char* argv[]) {
         name_field_width += 5;
 
         benchmark::BenchmarkReporter::Context context;
-        context.num_cpus = benchmark::NumCPUs();
-        context.mhz_per_cpu = benchmark::CyclesPerSecond() / 1000000.0f;
-        context.cpu_scaling_enabled = benchmark::CpuScalingEnabled();
         context.name_field_width = name_field_width;
         gBenchmarkReporter->ReportContext(context);
     }