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>
This commit is contained in:
Hal Canary 2018-01-31 11:54:14 -05:00 committed by Skia Commit-Bot
parent f3d0f8df2a
commit 4689b543a2
2 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,8 @@ declare_args() {
skia_jumper_clang = ""
skia_jumper_objdump = ""
skia_jumper_ccache = ""
skia_skqp_enable_driver_correctness_workarounds = false
}
declare_args() {
skia_use_dng_sdk = !is_fuchsia && skia_use_libjpeg_turbo && skia_use_zlib
@ -1790,6 +1792,10 @@ if (skia_enable_tools) {
if (!is_win && skia_enable_gpu) {
test_lib("skqp_lib") {
public_include_dirs = [ "tools/skqp" ]
defines = []
if (skia_skqp_enable_driver_correctness_workarounds) {
defines += [ "SK_SKQP_ENABLE_DRIVER_CORRECTNESS_WORKAROUNDS" ]
}
sources = [
"dm/DMFontMgr.cpp",
"dm/DMGpuTestProcs.cpp",

View File

@ -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);
}