(reland) Create a buffer independent cb_handle_t base class

Since PLATFORM_SDK_VERSION is not available everywhere, we need
a generic API to get information about gralloc buffers like width
or the host handle. All such fields are moved to a separate class
to be used by gralloc implementations.

Fixes the build error in gralloc_cb.h on old APIs.

Bug: 141385612
Test: boot, check the virtual scene camera
Change-Id: I8456de45ab566f4353e90273b8e4262d7f062e5e
Signed-off-by: Roman Kiryanov <rkir@google.com>
9 files changed