aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp3
-rw-r--r--src/gpu/gl/GrGLCaps.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index 168acdec73..5a0864e8cf 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -52,6 +52,7 @@ GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions,
fRGBAToBGRAReadbackConversionsAreSlow = false;
fDoManualMipmapping = false;
fSRGBDecodeDisableSupport = false;
+ fSRGBDecodeDisableAffectsMipmaps = false;
fBlitFramebufferFlags = kNoSupport_BlitFramebufferFlag;
@@ -609,6 +610,8 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
}
fSRGBDecodeDisableSupport = ctxInfo.hasExtension("GL_EXT_texture_sRGB_decode");
+ fSRGBDecodeDisableAffectsMipmaps = fSRGBDecodeDisableSupport &&
+ kChromium_GrGLDriver != ctxInfo.driver();
// Requires fTextureRedSupport, fTextureSwizzleSupport, msaa support, ES compatibility have
// already been detected.
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h
index deb0889c82..8a83e02222 100644
--- a/src/gpu/gl/GrGLCaps.h
+++ b/src/gpu/gl/GrGLCaps.h
@@ -346,6 +346,7 @@ public:
bool doManualMipmapping() const { return fDoManualMipmapping; }
bool srgbDecodeDisableSupport() const { return fSRGBDecodeDisableSupport; }
+ bool srgbDecodeDisableAffectsMipmaps() const { return fSRGBDecodeDisableAffectsMipmaps; }
/**
* Returns a string containing the caps info.
@@ -424,6 +425,7 @@ private:
bool fRGBAToBGRAReadbackConversionsAreSlow : 1;
bool fDoManualMipmapping : 1;
bool fSRGBDecodeDisableSupport : 1;
+ bool fSRGBDecodeDisableAffectsMipmaps : 1;
uint32_t fBlitFramebufferFlags;