| Index: bench/nanobench.cpp
|
| diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
|
| index 4ded06180012700ffe00f73af36de3de528e9f74..bd953dd7b434af05ad65e702bb53c45071cd2971 100644
|
| --- a/bench/nanobench.cpp
|
| +++ b/bench/nanobench.cpp
|
| @@ -43,6 +43,7 @@
|
| #include "SkTaskGroup.h"
|
| #include "SkThreadUtils.h"
|
| #include "ThermalManager.h"
|
| +#include "SkScan.h"
|
|
|
| #include <stdlib.h>
|
|
|
| @@ -126,6 +127,8 @@ DEFINE_string(sourceType, "",
|
| DEFINE_string(benchType, "",
|
| "Apply usual --match rules to bench type: micro, recording, playback, skcodec, etc.");
|
|
|
| +DEFINE_bool(analyticAA, false, "Analytic Anati-Alias");
|
| +
|
| static double now_ms() { return SkTime::GetNSecs() * 1e-6; }
|
|
|
| static SkString humanize(double ms) {
|
| @@ -1134,6 +1137,10 @@ int nanobench_main() {
|
| start_keepalive();
|
| }
|
|
|
| + if (FLAGS_analyticAA) {
|
| + GlobalAAConfig::getInstance().fUseAnalyticAA = true;
|
| + }
|
| +
|
| int runs = 0;
|
| BenchmarkStream benchStream;
|
| while (Benchmark* b = benchStream.next()) {
|
|
|