Comment 1 for bug 1200569

Revision history for this message
Michał Sawicz (saviq) wrote : Re: [shape] UbuntuShape should skip masking if image has an alpha-channel

<loicm>

The statistical variance of the alpha channel (how far the set of alpha
values is spread out) should provide a better check for false positives.
It's fast to compute (CPU-cached sequential memory reads, branch free)
and depends on the size of the image.

For now the UbuntuShape simply shapes the image keeping its alpha
channel unchanged. I'm currently making it possible to blend it over a
specific color or over another image [1]. I think we should ask the
design team what behaviour they expect for such images in the case of
the notification system and decide what to do based on that.

Loïc

[1] https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1157720