Index: include/gpu/GrContextOptions.h |
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h |
index 0522b9d20bc5110868467c9568f688e5756576bf..8ae826b1b1ac703fa1998af6cfc9530916e659fe 100644 |
--- a/include/gpu/GrContextOptions.h |
+++ b/include/gpu/GrContextOptions.h |
@@ -82,6 +82,14 @@ struct GrContextOptions { |
* purposes. |
*/ |
bool fForceSWPathMasks = false; |
+ |
+ /** |
+ * If true, sRGB support will not be enabled unless sRGB decoding can be disabled (via an |
+ * extension). If mixed use of "legacy" mode and sRGB/color-correct mode is not required, this |
+ * can be set to false, which will significantly expand the number of devices that qualify for |
+ * sRGB support. |
+ */ |
+ bool fRequireDecodeForSRGB = true; |
}; |
#endif |