am 5bfd1aff: Merge "Allocate layers from the layers pool. Bug #3413433" into honeycomb

* commit '5bfd1afffe361958682bcb899b763ce35ec00c3a':
  Allocate layers from the layers pool. Bug #3413433