If we try to clip against a path and the path only contains a rect, treat it as a...
authortomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 9 Mar 2012 16:48:20 +0000 (16:48 +0000)
committertomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 9 Mar 2012 16:48:20 +0000 (16:48 +0000)
commit4c4337291d873c4f27cb7903645863dc65b98a7b
tree2964d855bc0cc41b3ea2207135147bb3f78f3d8d
parent4ce3da5e9edeb16a07acb8f07d7d288cfab5e1ce
If we try to clip against a path and the path only contains a rect, treat it as a clip against a rect.
(Works around a performance issue: JavaScript Canvas2D API only provides canvas.clipPath(), and we don't
optimize path clips nearly as much as we can rects; this shows up more in Ganesh than in the software
rasterizer.)

http://codereview.appspot.com/5795044/

git-svn-id: http://skia.googlecode.com/svn/trunk@3355 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkClipStack.cpp
tests/ClipStackTest.cpp