OSDN Git Service

Create dim layer surfaces only when they are necessary.
authorFilip Gruszczynski <gruszczy@google.com>
Mon, 18 Jan 2016 21:20:58 +0000 (13:20 -0800)
committerFilip Gruszczynski <gruszczy@google.com>
Wed, 20 Jan 2016 00:54:38 +0000 (16:54 -0800)
commit64b6b448694de6d65b8748c396e99dd83d216b1a
treeced138bab712450e85fea6b395d762e6ee253a8f
parente501c39e2cbfbe4cac473e97f8cae55ace3bb48c
Create dim layer surfaces only when they are necessary.

Instead of creating the surfaces for dim layers the moment when the
dim layer is constructed, we can save memory until the dim layer is
actually used and allocate the surface then.

Change-Id: Iedd717d198faf2df3ff39a41537ec0e1018c7ca9
services/core/java/com/android/server/wm/DimLayer.java
services/core/java/com/android/server/wm/TaskPositioner.java