From dcd0f3a980095b77ebe605b49777a4bd37ca7b0a Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 4 Oct 2011 01:17:15 +0000 Subject: quick-rejects based on xfermode, using SkPaint::nothingToDraw() git-svn-id: http://skia.googlecode.com/svn/trunk@2402 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkPaint.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 }; -- cgit v1.2.3