Created attachment 94856 [details] Bad source-out image Example result image attached. Notice the artifact of an outline on the top left of source-out.
Created attachment 94860 [details] image from CoreGraphics here's a better example from coregraphics that doesn't have the same antialiasing issues as skia does.
I think the basic issue here is that the clipOut is antialiased, so the pixels on the edge have partial alpha, so they get partially filled in by the globalCompositeOperation, and then get partially cleared by the clear call.
*** This bug has been marked as a duplicate of bug 66036 ***