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 22:10:00 +0000 (15:10 -0700)
commit7d89d06a6fe1bfadfe277f19dbb7e4aa021444e0
treee4bc2cff57d40c689c8b325a94f67ce02883e381
parent84f1d9c288f35fa399f97207b6af43a261d5989a
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
(cherry picked from commit e7f8dde3f3c398c1ea1bec14e76725a760f71d31)
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h