| Index: bench/nanobench.cpp
|
| diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
|
| index 6ff2be4b1b3afc4d5db9bab23521389d9aac9b64..2037af016104ea971c82023a1365f2b02b983d7d 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>
|
|
|
| @@ -125,6 +126,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) {
|
| @@ -1133,6 +1136,10 @@ int nanobench_main() {
|
| start_keepalive();
|
| }
|
|
|
| + if (FLAGS_analyticAA) {
|
| + GlobalAAConfig::getInstance().fUseAnalyticAA = true;
|
| + }
|
| +
|
| int runs = 0;
|
| BenchmarkStream benchStream;
|
| while (Benchmark* b = benchStream.next()) {
|
|
|