Index: src/gpu/GrDrawTargetCaps.h |
diff --git a/src/gpu/GrDrawTargetCaps.h b/src/gpu/GrDrawTargetCaps.h |
index 648b5c36be15a523b96e47fc7c18d487715fb0c8..db2b090512c4cd2b3ad4f57619e6967e973126f5 100644 |
--- a/src/gpu/GrDrawTargetCaps.h |
+++ b/src/gpu/GrDrawTargetCaps.h |
@@ -72,6 +72,11 @@ |
return fConfigRenderSupport[config][withMSAA]; |
} |
+ bool compressedTextureSupport(GrCompressedFormat format) const { |
+ SkASSERT(kGrCompressedFormatCount > format); |
+ return fCompressedFormatSupport[format]; |
+ } |
+ |
protected: |
bool f8BitPaletteSupport : 1; |
bool fNPOTTextureTileSupport : 1; |
@@ -97,6 +102,8 @@ |
// The first entry for each config is without msaa and the second is with. |
bool fConfigRenderSupport[kGrPixelConfigCnt][2]; |
+ bool fCompressedFormatSupport[kGrCompressedFormatCount]; |
+ |
typedef SkRefCnt INHERITED; |
}; |