Index: include/gpu/GrContext.h |
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h |
index 77aef60d8d972694182a620ca39c95ba184c8180..a6fdf75d893be2f8b8dc42499722df6732aa571c 100644 |
--- a/include/gpu/GrContext.h |
+++ b/include/gpu/GrContext.h |
@@ -47,12 +47,13 @@ public: |
SK_DECLARE_INST_COUNT(GrContext) |
struct Options { |
- Options() : fDrawPathToCompressedTexture(false) { } |
+ Options() : fDrawPathToCompressedTexture(false), fSuppressPrints(false) { } |
// EXPERIMENTAL |
// May be removed in the future, or may become standard depending |
// on the outcomes of a variety of internal tests. |
bool fDrawPathToCompressedTexture; |
+ bool fSuppressPrints; |
}; |
/** |
@@ -529,6 +530,7 @@ public: |
GrResourceProvider* resourceProvider() { return fResourceProvider; } |
const GrResourceProvider* resourceProvider() const { return fResourceProvider; } |
GrResourceCache* getResourceCache() { return fResourceCache; } |
+ bool suppressPrints() const { return fOptions.fSuppressPrints; } |
// Called by tests that draw directly to the context via GrDrawTarget |
void getTestTarget(GrTestTarget*); |