diff options
author | 2016-03-25 06:01:59 -0700 | |
---|---|---|
committer | 2016-03-25 06:01:59 -0700 | |
commit | 64d094d7756534a9b9b0997aab225d9ceba098b6 (patch) | |
tree | b1297062c16726548ee940466da4e2fee17887e6 /src/gpu/gl/GrGLCaps.h | |
parent | 73233a75752733db16870259cc06b2a5230c8ff8 (diff) |
Require sRGB write control for sRGB support. Add flag to GrPaint to suppress linear -> sRGB conversion on write. Use that to fix YUV conversion, which directly produces sRGB data. (Technically, it produces data in whatever the color space of the JPEG might be).
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1830303002
Review URL: https://codereview.chromium.org/1830303002
Diffstat (limited to 'src/gpu/gl/GrGLCaps.h')
-rw-r--r-- | src/gpu/gl/GrGLCaps.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h index bb3e231719..e9a29693de 100644 --- a/src/gpu/gl/GrGLCaps.h +++ b/src/gpu/gl/GrGLCaps.h @@ -323,13 +323,6 @@ public: /// GL_ARB_texture_swizzle bool textureSwizzleSupport() const { return fTextureSwizzleSupport; } - /** - * Is there support for enabling/disabling sRGB writes for sRGB-capable color attachments? - * If false this does not mean sRGB is not supported but rather that if it is supported - * it cannot be turned off for configs that support it. - */ - bool srgbWriteControl() const { return fSRGBWriteControl; } - bool mipMapLevelAndLodControlSupport() const { return fMipMapLevelAndLodControlSupport; } /** @@ -402,7 +395,6 @@ private: bool fUseNonVBOVertexAndIndexDynamicData : 1; bool fIsCoreProfile : 1; bool fBindFragDataLocationSupport : 1; - bool fSRGBWriteControl : 1; bool fRGBA8888PixelsOpsAreSlow : 1; bool fPartialFBOReadIsSlow : 1; bool fBindUniformLocationSupport : 1; |