OSDN Git Service

Improve the circularMask for round displays
authorPrashant Malani <pmalani@google.com>
Thu, 8 Jan 2015 02:30:27 +0000 (18:30 -0800)
committerPrashant Malani <pmalani@google.com>
Fri, 9 Jan 2015 19:07:03 +0000 (11:07 -0800)
commitea481beda699165a7050ddcc37b10841d33ed9e6
treeb87b5dbad68185a28371815643e874027a2074f2
parentf61bc8a2624bc70c903238229a62abc3351ed620
Improve the circularMask for round displays

The mask was earlier drawn as a thin ring at the display periphery.
This had undesirable effects when screenshots were taken, as the ring
was seen, as well as display content beyond it.

This patch modifies the mask to be a black canvas with portions erased
to improve the screenshot image.

Bug: 18772987
Change-Id: I25ef6387879613354308e015446fe325ed8c4515
services/core/java/com/android/server/wm/CircularDisplayMask.java