From 115d931d2fbd3a109a21b28c8a9c5099e6c49c54 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Wed, 16 May 2012 18:50:40 +0000 Subject: pass the region-op to the clipstack for SkCanvas::clipRegion. we were defaulting to intersect all the time (doh). git-svn-id: http://skia.googlecode.com/svn/trunk@3980 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkCanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 3687d1e984..f50728421a 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -1194,7 +1194,7 @@ bool SkCanvas::clipRegion(const SkRegion& rgn, SkRegion::Op op) { // todo: signal fClipStack that we have a region, and therefore (I guess) // we have to ignore it, and use the region directly? - fClipStack.clipDevRect(rgn.getBounds()); + fClipStack.clipDevRect(rgn.getBounds(), op); return fMCRec->fRasterClip->op(rgn, op); } -- cgit v1.2.3