Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: include/gpu/GrCaps.h

Issue 1563443002: Move config texturability/renderability to config table (Closed) Base URL: https://skia.googlesource.com/skia.git@readpixformat
Patch Set: whitespace cleanup Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrCaps.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrCaps.h
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 3a6d27ba6647214fe2c565f31aa4f8e9f7ddf842..217a446264af6458e8a6247836b1fdce454c78e9 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&) {};
« no previous file with comments | « no previous file | src/gpu/GrCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698