aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrCaps.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-01-08 09:12:44 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-08 09:12:44 -0800
commit41e4384ea0208631ab7847266c3369b17ed7fbf3 (patch)
tree7f5781115d34a45ab035340648a514e0db571c00 /include/gpu/GrCaps.h
parent91b4dfbb2fe995db8404fe881a99d4d3d36fee71 (diff)
Move config texturability/renderability to config table.
Diffstat (limited to 'include/gpu/GrCaps.h')
-rw-r--r--include/gpu/GrCaps.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 3a6d27ba66..217a446264 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -194,15 +194,8 @@ public:
// Will be 0 if MSAA is not supported
int maxSampleCount() const { return fMaxSampleCount; }
- 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];
- }
+ virtual bool isConfigTexturable(GrPixelConfig config) const = 0;
+ virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0;
bool suppressPrints() const { return fSuppressPrints; }
@@ -270,10 +263,6 @@ protected:
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&) {};