OSDN Git Service

SurfaceFlinger: Limit to 4k Layers
authorDan Stoza <stoza@google.com>
Thu, 30 Apr 2015 20:29:25 +0000 (13:29 -0700)
committerDan Stoza <stoza@google.com>
Thu, 30 Apr 2015 21:29:30 +0000 (14:29 -0700)
commite7f8dde3f3c398c1ea1bec14e76725a760f71d31
treedc6efec8d9882d68e3ade36567e6d2f01d5cdac3
parent8de71a2408f632407c25942a39c31f78c7f64ffd
SurfaceFlinger: Limit to 4k Layers

Sets a limit of 4k Layers which SurfaceFlinger will allow to be in
existence at any given time. An attempt to create Layers in excess of
this limit will fail with NO_MEMORY.

Bug: 20674586
Change-Id: I2dfaf59643d826f982b2fa44e8a9ed643176d972
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h