The spec seems intentionally vague regarding the antialiasing of clips so Blink isn't doing anything non-compliant but, performing antialiased draws but aliased clipping seems contrary to end-user expectations.
Summary
Change the behavior of Canvas clipping to be antialiased. Initially behind a flag to allow switching the behavior of the canvas element.
Motivation
Many web developers would like antialiased clipping in canvas so their canvas graphics will look better. Most other browsers already provide antialiased canvas clipping.
Compatibility Risk
It appears that most other browsers already support antialiased canvas clipping.
Ongoing technical constraints
None.
Will this feature be supported on all five Blink platforms (Windows, Mac, Linux, Chrome OS and Android)?
Yes - Skia supports antialiased clipping on all of these platforms.
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Robert Phillips, blink-dev
This seems like a clear win: it's a better user experience and improves interoperability. Is there a reason not to ship this too?
Dirk Schulze
unread,
Oct 13, 2014, 1:28:05 PM10/13/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Philip Rogers, Robert Phillips, blink-dev
Hi Philip,
IIRC all browsers but Chrome do anitaliased clipping by default. Even without an switch to non-antialiased clipping.
How do you plan to change that in Blink? Will there be a flag to switch between one and the other clipping?
Most web developers want antialiased clipping. However, if there are compelling use cases for having both, could you start a thread on WHATWG mailing list and bring this up please?
Greetings,
Dirk
Robert Phillips
unread,
Oct 13, 2014, 1:30:21 PM10/13/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Philip Rogers, blink-dev
There is a bit more work that needs to be done on the Skia-side to ensure that we don't see any performance degradation (esp. for concave path clips). So, I would like to keep it behind a flag until we ensure that it is ready to go.
Ian Hickson
unread,
Oct 14, 2014, 12:12:02 PM10/14/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'