Merge "Track pendingBuffer count in RequestedLayerState" into main