diff options
Diffstat (limited to 'bench/SkBenchmark.h')
-rw-r--r-- | bench/SkBenchmark.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/bench/SkBenchmark.h b/bench/SkBenchmark.h index bc9794a34d..945db8082f 100644 --- a/bench/SkBenchmark.h +++ b/bench/SkBenchmark.h @@ -42,6 +42,19 @@ public: fDither = state; } + void setStrokeWidth(SkScalar width) { + strokeWidth = width; + fHasStrokeWidth = true; + } + + SkScalar getStrokeWidth() { + return strokeWidth; + } + + bool hasStrokeWidth() { + return fHasStrokeWidth; + } + const char* findDefine(const char* key) const; bool findDefine32(const char* key, int32_t* value) const; bool findDefineScalar(const char* key, SkScalar* value) const; @@ -60,9 +73,10 @@ private: bool fForceAA; bool fForceFilter; SkTriState::State fDither; + bool fHasStrokeWidth; + SkScalar strokeWidth; }; typedef SkTRegistry<SkBenchmark*, void*> BenchRegistry; #endif - |