Refactor gralloc to reduce usage of global variables and remove macros
am: 42b24c4513

Change-Id: I7719cc476dcbd9f6d34153f2f67e695ee38456d6