aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/flags
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-03-27 08:06:57 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-27 12:37:44 +0000
commit33f02edb14bb2ad802324daa99886709990893a1 (patch)
treeba4b62389d382d226b30f061fbf3b15723611f8f /tools/flags
parent2ef4525daf153fe8927727e2131a35d520e90269 (diff)
Switch DDL rendering to be a Via in DM (take 2)
This will let us also render the GMs via DDLs. TBR=mtklein@google.com Change-Id: If7c2460d964822a6decc33cf5e8e685e67923127 Reviewed-on: https://skia-review.googlesource.com/116463 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tools/flags')
-rw-r--r--tools/flags/SkCommonFlags.cpp2
-rw-r--r--tools/flags/SkCommonFlags.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/tools/flags/SkCommonFlags.cpp b/tools/flags/SkCommonFlags.cpp
index b78b7d43b6..9195546389 100644
--- a/tools/flags/SkCommonFlags.cpp
+++ b/tools/flags/SkCommonFlags.cpp
@@ -63,6 +63,8 @@ DEFINE_string(jpgs, "jpgs", "Directory to read jpgs from.");
DEFINE_string(jsons, "jsons", "Directory to read (Bodymovin) jsons from.");
#endif
+DEFINE_int32(skpViewportSize, 1000, "Width & height of the viewport used to crop skp rendering.");
+
DEFINE_int32(ddl, 0, "If > 0, the # of x & y divisions used for DeferredDisplayList-based "
"GPU SKP rendering.");
diff --git a/tools/flags/SkCommonFlags.h b/tools/flags/SkCommonFlags.h
index cdd0d84100..c7c5456ff9 100644
--- a/tools/flags/SkCommonFlags.h
+++ b/tools/flags/SkCommonFlags.h
@@ -24,6 +24,7 @@ DECLARE_bool(preAbandonGpuContext);
DECLARE_bool(abandonGpuContext);
DECLARE_bool(releaseAndAbandonGpuContext);
DECLARE_string(skps);
+DECLARE_int32(skpViewportSize);
DECLARE_int32(ddl);
DECLARE_string(jpgs);
DECLARE_string(jsons);