diff options
author | 2016-05-27 10:57:58 -0700 | |
---|---|---|
committer | 2016-05-27 10:57:58 -0700 | |
commit | ca1ec03c5c8db26e07a931415e9592d8e1966da0 (patch) | |
tree | 74bb473018d0d49859147bd19ce9d59e7cd38348 /tools | |
parent | 785a5b941a4d74a1f272729fe8dca55c6eda6bb8 (diff) |
Move forceSRGB to SkCommonFlags.
This fixes a duplicate symbol problem with the iOS build.
Add common forceSRGB flag.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2019073002
Review-Url: https://codereview.chromium.org/2019073002
Diffstat (limited to 'tools')
-rw-r--r-- | tools/flags/SkCommonFlags.cpp | 2 | ||||
-rw-r--r-- | tools/flags/SkCommonFlags.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tools/flags/SkCommonFlags.cpp b/tools/flags/SkCommonFlags.cpp index 1caffd54d6..3da5efebc5 100644 --- a/tools/flags/SkCommonFlags.cpp +++ b/tools/flags/SkCommonFlags.cpp @@ -13,6 +13,8 @@ DEFINE_bool(cpu, true, "master switch for running CPU-bound work."); DEFINE_bool(dryRun, false, "just print the tests that would be run, without actually running them."); +DEFINE_bool(forceSRGB, false, "Force SRGB for imageinfos"); + DEFINE_bool(gpu, true, "master switch for running GPU-bound work."); DEFINE_string(images, "", "List of images and/or directories to decode. A directory with no images" diff --git a/tools/flags/SkCommonFlags.h b/tools/flags/SkCommonFlags.h index ddd0fc89e0..b7eaca4eba 100644 --- a/tools/flags/SkCommonFlags.h +++ b/tools/flags/SkCommonFlags.h @@ -14,6 +14,7 @@ DECLARE_bool(cpu); DECLARE_bool(dryRun); +DECLARE_bool(forceSRGB); DECLARE_bool(gpu); DECLARE_string(images); DECLARE_string(colorImages); |