diff options
Diffstat (limited to 'src/gpu/GrDrawTargetCaps.h')
-rw-r--r-- | src/gpu/GrDrawTargetCaps.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/GrDrawTargetCaps.h b/src/gpu/GrDrawTargetCaps.h index 648b5c36be..681327cdc7 100644 --- a/src/gpu/GrDrawTargetCaps.h +++ b/src/gpu/GrDrawTargetCaps.h @@ -72,6 +72,11 @@ public: return fConfigRenderSupport[config][withMSAA]; } + bool compressedTextureSupport(GrCompressedFormat format) const { + SkASSERT(format < kCompressedFormatCount); + return fCompressedFormatSupport[format]; + } + protected: bool f8BitPaletteSupport : 1; bool fNPOTTextureTileSupport : 1; @@ -97,6 +102,8 @@ protected: // The first entry for each config is without msaa and the second is with. bool fConfigRenderSupport[kGrPixelConfigCnt][2]; + bool fCompressedFormatSupport[kCompressedFormatCount]; + typedef SkRefCnt INHERITED; }; |