Index: include/core/SkCanvas.h |
=================================================================== |
--- include/core/SkCanvas.h (revision 13449) |
+++ include/core/SkCanvas.h (working copy) |
@@ -488,6 +488,13 @@ |
*/ |
bool quickRejectY(SkScalar top, SkScalar bottom) const { |
SkASSERT(top <= bottom); |
+ |
+ if (this->getTotalMatrix().hasPerspective()) { |
+ // To correctly handle perspective we would need to forward |
+ // project a rect (as in quickReject). |
reed1
2014/02/14 17:45:18
// TODO -- consider implementing some half-plane t
robertphillips
2014/02/14 18:32:40
Done.
|
+ return false; |
+ } |
+ |
const SkRect& clipR = this->getLocalClipBounds(); |
// In the case where the clip is empty and we are provided with a |
// negative top and positive bottom parameter then this test will return |