Allocate GPU buffers only when explicitly requested

This will not only save GPU resources, but will
also prevent syncing CPU anf GPU buffers which
sometimes involves format conversion.

This should also help with migrating to a third
party gralloc since it might not have special
assumptions on where to allocate GPU resources.

Bug: 251042358
Test: presubmit
Change-Id: I12b342a8628047e07d32206c13278e5cf92e8056
Signed-off-by: Roman Kiryanov <rkir@google.com>
2 files changed