aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrCaps.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrCaps.h')
-rw-r--r--include/gpu/GrCaps.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 580017a9fe..be62d8a851 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -14,6 +14,8 @@
#include "SkRefCnt.h"
#include "SkString.h"
+struct GrContextOptions;
+
class GrShaderCaps : public SkRefCnt {
public:
SK_DECLARE_INST_COUNT(GrShaderCaps)
@@ -103,7 +105,7 @@ class GrCaps : public SkRefCnt {
public:
SK_DECLARE_INST_COUNT(GrCaps)
- GrCaps();
+ GrCaps(const GrContextOptions&);
virtual SkString dump() const;
@@ -186,6 +188,11 @@ public:
return fConfigTextureSupport[config];
}
+ bool suppressPrints() const { return fSupressPrints; }
+
+ bool drawPathMasksToCompressedTexturesSupport() const {
+ return fDrawPathMasksToCompressedTextureSupport; }
+
protected:
SkAutoTUnref<GrShaderCaps> fShaderCaps;
@@ -214,6 +221,9 @@ protected:
bool fConfigTextureSupport[kGrPixelConfigCnt];
private:
+ bool fSupressPrints : 1;
+ bool fDrawPathMasksToCompressedTextureSupport : 1;
+
typedef SkRefCnt INHERITED;
};