Index: src/gpu/gl/GrGLCaps.h |
=================================================================== |
--- src/gpu/gl/GrGLCaps.h (revision 8966) |
+++ src/gpu/gl/GrGLCaps.h (working copy) |
@@ -77,8 +77,20 @@ |
* GL_MAX_SAMPLES value. |
*/ |
kES_EXT_MsToTexture_MSFBOType, |
+ |
+ kLast_MSFBOType = kES_EXT_MsToTexture_MSFBOType |
}; |
+ enum FBFetchType { |
+ kNone_FBFetchType, |
+ /** GL_EXT_shader_framebuffer_fetch */ |
+ kEXT_FBFetchType, |
+ /** GL_NV_shader_framebuffer_fetch */ |
+ kNV_FBFetchType, |
+ |
+ kLast_FBFetchType = kNV_FBFetchType, |
+ }; |
+ |
enum CoverageAAType { |
/** |
* No coverage sample support |
@@ -184,6 +196,8 @@ |
*/ |
const MSAACoverageMode& getMSAACoverageMode(int desiredSampleCount) const; |
+ FBFetchType fbFetchType() const { return fFBFetchType; } |
+ |
/** |
* Prints the caps info using GrPrintf. |
*/ |
@@ -323,6 +337,8 @@ |
CoverageAAType fCoverageAAType; |
SkTDArray<MSAACoverageMode> fMSAACoverageModes; |
+ FBFetchType fFBFetchType; |
+ |
bool fRGBA8RenderbufferSupport : 1; |
bool fBGRAFormatSupport : 1; |
bool fBGRAIsInternalFormat : 1; |