Index: src/gpu/gl/GrGLCaps.h |
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h |
index c2d808e4a54bdb63ba5544cdc6a5f2f481f60b1a..6ccafe83e3dc0e4c61c6196295a44a1369b6acf4 100644 |
--- a/src/gpu/gl/GrGLCaps.h |
+++ b/src/gpu/gl/GrGLCaps.h |
@@ -270,6 +270,19 @@ public: |
*/ |
virtual SkString dump() const SK_OVERRIDE; |
+ /** |
+ * LATC can appear under one of three possible names. In order to know |
+ * which GL internal format to use, we need to keep track of which name |
+ * we found LATC under. The default is LATC. |
+ */ |
+ enum LATCAlias { |
+ kLATC_LATCAlias, |
+ kRGTC_LATCAlias, |
+ k3DC_LATCAlias |
+ }; |
+ |
+ LATCAlias latcAlias() const { return fLATCAlias; } |
+ |
private: |
/** |
* Maintains a bit per GrPixelConfig. It is used to avoid redundantly |
@@ -312,8 +325,7 @@ private: |
void initStencilFormats(const GrGLContextInfo&); |
// This must be called after initFSAASupport(). |
void initConfigRenderableTable(const GrGLContextInfo&); |
- |
- void initCompressedTextureSupport(const GrGLContextInfo &); |
+ void initConfigTexturableTable(const GrGLContextInfo&); |
// tracks configs that have been verified to pass the FBO completeness when |
// used as a color attachment |
@@ -334,6 +346,7 @@ private: |
FBFetchType fFBFetchType; |
InvalidateFBType fInvalidateFBType; |
MapBufferType fMapBufferType; |
+ LATCAlias fLATCAlias; |
bool fRGBA8RenderbufferSupport : 1; |
bool fBGRAFormatSupport : 1; |