diff options
author | 2011-10-04 01:17:15 +0000 | |
---|---|---|
committer | 2011-10-04 01:17:15 +0000 | |
commit | dcd0f3a980095b77ebe605b49777a4bd37ca7b0a (patch) | |
tree | ebf1153291d35fed9b9d0f0d473887a8bc799736 /include | |
parent | 2c508f2dc22027d61437b79326297ba055041561 (diff) |
quick-rejects based on xfermode, using SkPaint::nothingToDraw()
git-svn-id: http://skia.googlecode.com/svn/trunk@2402 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-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 }; |