aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skqp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2018-01-31 11:54:14 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-31 17:18:25 +0000
commit4689b543a2174fa12b4b884458fefa98dd89a573 (patch)
treefd823c50934637deb7eeeb02078147500e5ea50c /tools/skqp
parentf3d0f8df2a50c9dc2e2e6760aff82562220c9ff8 (diff)
SkQP: skia_skqp_enable_driver_correctness_workarounds
Change-Id: If61341423ff03efa48814a393f16eaaee02cecbd Reviewed-on: https://skia-review.googlesource.com/102183 Reviewed-by: Hal Canary <halcanary@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'tools/skqp')
-rw-r--r--tools/skqp/gm_runner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/skqp/gm_runner.cpp b/tools/skqp/gm_runner.cpp
index 437e3c10af..ce0586d490 100644
--- a/tools/skqp/gm_runner.cpp
+++ b/tools/skqp/gm_runner.cpp
@@ -141,7 +141,9 @@ static GrContextOptions context_options(skiagm::GM* gm = nullptr) {
GrContextOptions grContextOptions;
grContextOptions.fAllowPathMaskCaching = true;
grContextOptions.fSuppressPathRendering = true;
+ #ifndef SK_SKQP_ENABLE_DRIVER_CORRECTNESS_WORKAROUNDS
grContextOptions.fDisableDriverCorrectnessWorkarounds = true;
+ #endif
if (gm) {
gm->modifyGrContextOptions(&grContextOptions);
}