Index: include/gpu/GrContextOptions.h |
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h |
index 5619e3063b8ff3a127e30f0c00e83d9311262eab..1e5897b313e2bfc9d2cebf6f414800a5a2c3b03c 100644 |
--- a/include/gpu/GrContextOptions.h |
+++ b/include/gpu/GrContextOptions.h |
@@ -19,7 +19,8 @@ struct GrContextOptions { |
, fSuppressDualSourceBlending(false) |
, fGeometryBufferMapThreshold(-1) |
, fUseDrawInsteadOfPartialRenderTargetWrite(false) |
- , fImmediateMode(false) {} |
+ , fImmediateMode(false) |
+ , fUseShaderSwizzling(false) {} |
// EXPERIMENTAL |
// May be removed in the future, or may become standard depending |
@@ -50,6 +51,10 @@ struct GrContextOptions { |
/** The GrContext operates in immedidate mode. It will issue all draws to the backend API |
immediately. Intended to ease debugging. */ |
bool fImmediateMode; |
+ |
+ /** Force us to do all swizzling manually in the shader and don't rely on extensions to do |
+ swizzling. */ |
+ bool fUseShaderSwizzling; |
}; |
#endif |