| Index: include/gpu/GrCaps.h
|
| diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
|
| index 6d11b137e4ab1b299ede42e949e980bc2399c569..e28b49488a06593065b9fa333a1b380c2d35174e 100644
|
| --- a/include/gpu/GrCaps.h
|
| +++ b/include/gpu/GrCaps.h
|
| @@ -144,9 +144,12 @@ public:
|
| * Skia convention is that a device only has sRGB support if it supports sRGB formats for both
|
| * textures and framebuffers. In addition:
|
| * Decoding to linear of an sRGB texture can be disabled.
|
| - * Encoding and gamma-correct blending to an sRGB framebuffer can be disabled.
|
| */
|
| bool srgbSupport() const { return fSRGBSupport; }
|
| + /**
|
| + * Is there support for enabling/disabling sRGB writes for sRGB-capable color buffers?
|
| + */
|
| + bool srgbWriteControl() const { return fSRGBWriteControl; }
|
| bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; }
|
| bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; }
|
| bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport; }
|
| @@ -284,6 +287,7 @@ protected:
|
| bool fNPOTTextureTileSupport : 1;
|
| bool fMipMapSupport : 1;
|
| bool fSRGBSupport : 1;
|
| + bool fSRGBWriteControl : 1;
|
| bool fTwoSidedStencilSupport : 1;
|
| bool fStencilWrapOpsSupport : 1;
|
| bool fDiscardRenderTargetSupport : 1;
|
|
|