diff options
author | bsalomon <bsalomon@google.com> | 2016-01-07 13:00:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-07 13:00:11 -0800 |
commit | 32a3cd2f2860b15a842a6aa49e4e6a3bed04f949 (patch) | |
tree | 55c4e3af9a4b436b6a8da35a30e0f9d2660d7fd0 /include/gpu | |
parent | b30dd1db1d914b85a691b4724713ba1b0f16cd6c (diff) |
Move config texturability/renderability to config table.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1563443002
Review URL: https://codereview.chromium.org/1563443002
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrCaps.h | 15 |
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&) {}; |