gralloc: pad RGB buffers by a minimum of 2 extra lines

If the buffer is xcrop pixels off the left edge of the screen, xcrop
extra pixels are needed past the 1 line of padding normally expected by
the FIMD.  xcrop is not known at allocation time so assume the worst
case of a full extra line.

Bug: 7304464
Change-Id: I126992eccfb36a402a202a8236a07a5479332812
Signed-off-by: Greg Hackmann <ghackmann@google.com>
1 file changed