move call to nothingToDraw into our iterator, so it sees the results of filters and loopers
before making its decision.
git-svn-id: http://skia.googlecode.com/svn/trunk@2417 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 4785baa..5e3e26b 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -821,6 +821,10 @@
uint32_t getGenerationID() const;
#endif
+ // 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;
+
private:
SkTypeface* fTypeface;
SkScalar fTextSize;
@@ -865,10 +869,6 @@
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
};