| Index: include/gpu/GrCaps.h
|
| diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
|
| index 217a446264af6458e8a6247836b1fdce454c78e9..3a6d27ba6647214fe2c565f31aa4f8e9f7ddf842 100644
|
| --- a/include/gpu/GrCaps.h
|
| +++ b/include/gpu/GrCaps.h
|
| @@ -194,8 +194,15 @@
|
| // Will be 0 if MSAA is not supported
|
| int maxSampleCount() const { return fMaxSampleCount; }
|
|
|
| - virtual bool isConfigTexturable(GrPixelConfig config) const = 0;
|
| - virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0;
|
| + bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const {
|
| + SkASSERT(kGrPixelConfigCnt > config);
|
| + return fConfigRenderSupport[config][withMSAA];
|
| + }
|
| +
|
| + bool isConfigTexturable(GrPixelConfig config) const {
|
| + SkASSERT(kGrPixelConfigCnt > config);
|
| + return fConfigTextureSupport[config];
|
| + }
|
|
|
| bool suppressPrints() const { return fSuppressPrints; }
|
|
|
| @@ -263,6 +270,10 @@
|
| int fMaxTileSize;
|
| int fMaxSampleCount;
|
|
|
| + // The first entry for each config is without msaa and the second is with.
|
| + bool fConfigRenderSupport[kGrPixelConfigCnt][2];
|
| + bool fConfigTextureSupport[kGrPixelConfigCnt];
|
| +
|
| private:
|
| virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
|
|
|
|
|