diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-19 16:18:01 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-19 16:18:01 +0000 |
commit | 21645efb2516d31f1119079afd869847ed72eb0d (patch) | |
tree | 53a97c7a39215b541b393f6a0f14490dc10235f3 /gpu/GrDrawTargetCaps.h | |
parent | 8d40c501dd05b786dca27a9d6603897615a93fe6 (diff) | |
download | src-21645efb2516d31f1119079afd869847ed72eb0d.tar.gz |
Add detection of mip support
R=robertphillips@google.com, jvanverth@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/102853005
git-svn-id: http://skia.googlecode.com/svn/trunk/src@12771 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/GrDrawTargetCaps.h')
-rw-r--r-- | gpu/GrDrawTargetCaps.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/GrDrawTargetCaps.h b/gpu/GrDrawTargetCaps.h index e597e099..b316e491 100644 --- a/gpu/GrDrawTargetCaps.h +++ b/gpu/GrDrawTargetCaps.h @@ -28,6 +28,9 @@ public: bool eightBitPaletteSupport() const { return f8BitPaletteSupport; } bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } + /** To avoid as-yet-unnecessary complexity we don't allow any partial support of MIP Maps (e.g. + only for POT textures) */ + bool mipMapSupport() const { return fMipMapSupport; } bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } bool hwAALineSupport() const { return fHWAALineSupport; } @@ -57,6 +60,7 @@ public: protected: bool f8BitPaletteSupport : 1; bool fNPOTTextureTileSupport : 1; + bool fMipMapSupport : 1; bool fTwoSidedStencilSupport : 1; bool fStencilWrapOpsSupport : 1; bool fHWAALineSupport : 1; |