libgui: Add support to update buffer geometry.

https://github.com/TeamCanjica/android_frameworks_native/commit/af92c01e7a5a7ab85b63667b09707021447ed986