gpu: Refactor GpuMemoryBuffer framework for multi-process support.

This removes the ImageFactory interface and adjusts the buffer
allocation system for future multi-process support.

Also includes proper plumbing of internalformat to GLImage implementation
and makes sure the compositor is using the correct format.

TEST=gpu_unittests --gtest_filter=MockGpuMemoryBufferTest.Lifecycle

Review URL:

(CM: Add the newly added file to the makefiles)
Signed-off-by: Chirayu Desai <>
Signed-off-by: Joel Teichroeb <>
Change-Id: Iff859f68f7097a36262bd24c0face0edf63f4a4c
51 files changed