OSDN Git Service

DO NOT MERGE Improved anti-aliasing for circular display mask
authorMatthew Bouyack <mbouyack@google.com>
Tue, 2 Aug 2016 18:58:26 +0000 (11:58 -0700)
committerMatthew Bouyack <mbouyack@google.com>
Fri, 14 Oct 2016 21:41:25 +0000 (14:41 -0700)
commitc84731ae3b6744b7f3a0c7a39dc3a1d0d3f436a3
treeb8dbb27fcbae56e5414421c4a729f5e2a44fa258
parente04c7f151b802eabb33c7d40010f5465c65849f1
DO NOT MERGE Improved anti-aliasing for circular display mask

Calculate the alpha value for each pixel in the display mask based on
the area of overlap between the circle and that pixel.

This works around a bug in Skia that is fixed in master.

Change-Id: Ieb8df0d6f46f07cff1dbc368d74938ec699e08cf
services/core/java/com/android/server/wm/CircularDisplayMask.java