aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/nanobench.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-06-05 10:20:31 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-05 14:45:11 +0000
commitc928fe2056514a64e14d1082aa747a1a98c73f97 (patch)
treed5c2e3ac5d5f2bd19ed8e4a46a321ef8f4e6a327 /bench/nanobench.cpp
parenteee4d6e4e8cc5c4c79f065abcc3ce609f71238f9 (diff)
add testing flag to force rasterpipeline
Bug: skia: Change-Id: I8e195e90dc00b9be9072858086f7541e993428da Reviewed-on: https://skia-review.googlesource.com/18585 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'bench/nanobench.cpp')
-rw-r--r--bench/nanobench.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index ca8c183043..b6f8343eab 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -50,6 +50,8 @@
#include <stdlib.h>
+extern bool gSkForceRasterPipelineBlitter;
+
#ifndef SK_BUILD_FOR_WIN32
#include <unistd.h>
#endif
@@ -128,6 +130,8 @@ DEFINE_string(sourceType, "",
DEFINE_string(benchType, "",
"Apply usual --match rules to bench type: micro, recording, piping, playback, skcodec, etc.");
+DEFINE_bool(forceRasterPipeline, false, "sets gSkForceRasterPipelineBlitter");
+
#if SK_SUPPORT_GPU
DEFINE_pathrenderer_flag;
#endif
@@ -1196,6 +1200,9 @@ int main(int argc, char** argv) {
if (FLAGS_forceAnalyticAA) {
gSkForceAnalyticAA = true;
}
+ if (FLAGS_forceRasterPipeline) {
+ gSkForceRasterPipelineBlitter = true;
+ }
int runs = 0;
BenchmarkStream benchStream;