aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/nanobench.cpp
diff options
context:
space:
mode:
authorGravatar liyuqian <liyuqian@google.com>2016-10-04 11:23:22 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-04 11:23:22 -0700
commit38911a7cb53474575e1cd1cb545902b50ee00889 (patch)
treee8186ee1c91bb4f9206457debdb0103c1a38218f /bench/nanobench.cpp
parent421a3c1cc1b227084c7c84618d0b6a6804faabef (diff)
Resubmit issue 2221103002 to fix the iOS build by declaring the flag in
SkCommonFlags.h TBR=reed@google.com,caryclark@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2393643002 Review-Url: https://codereview.chromium.org/2393643002
Diffstat (limited to 'bench/nanobench.cpp')
-rw-r--r--bench/nanobench.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 433cfa89d9..1191423544 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -44,6 +44,7 @@
#include "SkTaskGroup.h"
#include "SkThreadUtils.h"
#include "ThermalManager.h"
+#include "SkScan.h"
#include <stdlib.h>
@@ -1178,6 +1179,10 @@ int nanobench_main() {
start_keepalive();
}
+ if (FLAGS_analyticAA) {
+ GlobalAAConfig::getInstance().fUseAnalyticAA = true;
+ }
+
int runs = 0;
BenchmarkStream benchStream;
while (Benchmark* b = benchStream.next()) {