diff options
Diffstat (limited to 'include/core/SkPaint.h')
-rw-r--r-- | include/core/SkPaint.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index 7f3f0be223..4785baa6f1 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -865,6 +865,10 @@ private: const SkRect& computeStrokeFastBounds(const SkRect& orig, SkRect* storage) const; + // returns true if the paint's settings (e.g. xfermode + alpha) resolve to + // mean that we need not draw at all (e.g. SrcOver + 0-alpha) + bool nothingToDraw() const; + enum { kCanonicalTextSizeForPaths = 64 }; |