Index: include/gpu/GrCaps.h |
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h |
index 580017a9fe40283d80ee6f5bee6a7c9398dc8496..be62d8a851972a8cd1182852e34a430696264a46 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; |
}; |