Merge "Allocate layers from the layers pool. Bug #3413433" into honeycomb