diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-02-14 17:03:16 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-02-14 17:03:16 +0000 |
commit | 621dfe6c847a6372abc1d14b38c6c44198ef76b7 (patch) | |
tree | 949509a35c0ad91a78cb964e1e82595ab5b3b914 /src/gpu/gl/GrGLCaps.h | |
parent | ed3ee6418ac1dc527db68c75c1d3d9a8d80ebeb0 (diff) |
Add test to detect bias in conversion of frag shader floats to bytes
Review URL: http://codereview.appspot.com/5669045/
git-svn-id: http://skia.googlecode.com/svn/trunk@3191 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGLCaps.h')
-rw-r--r-- | src/gpu/gl/GrGLCaps.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h index a5318ebde8..27e42582c0 100644 --- a/src/gpu/gl/GrGLCaps.h +++ b/src/gpu/gl/GrGLCaps.h @@ -10,6 +10,7 @@ #ifndef GrGLCaps_DEFINED #define GrGLCaps_DEFINED +#include "GrGLColorConversionTest.h" #include "GrGLStencilBuffer.h" class GrGLContextInfo; @@ -102,6 +103,10 @@ public: GrPixelConfig config, const GrGLStencilBuffer::Format& format) const; + GrGLByteColorConversion byteColorConversion() const { + return fByteColorConversion; + } + /** * Reports the type of MSAA FBO support. */ @@ -211,6 +216,7 @@ private: int fMaxFragmentUniformVectors; MSFBOType fMSFBOType; + GrGLByteColorConversion fByteColorConversion; bool fRGBA8RenderbufferSupport : 1; bool fBGRAFormatSupport : 1; |