[Webkit-unassigned] [Bug 28820] Chromium: do anti-aliased path clipping

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 2 13:04:37 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28820





--- Comment #3 from Brett Wilson (Google) <brettw at chromium.org>  2009-09-02 13:04:35 PDT ---
Do you know why the imageBufferClip not used on Mac, but yours path thing is? I
would have expected them to go with one-another.


I'm now remembering a more efficient way to do the clipping without adding the
extra layer. Sorry I forgot this from before (this suggestion is from Mike):

Instead of drawing the image inside the path, clear the area outside the path.
Use the fill type on SkPath to draw "outside" the path with the transfer mode
of clear. Then you can just paint the original (now modified) bitmap to the
destination.

It also means you don't need to save the layer for each clipping path. You can
just save all the paths, erase the areas outside of each of them from the
single extra layer you made, and then composite that down.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list