Add batching to IGBP functions

The batching functions has a default implementation that calls
into the implementation of corresponding non-batched version.

Bug: 113788435
Bug: 137244088

Test: atest libgui_test

Change-Id: I068a05b8bfc7c64f893649dec2ef2233f16a22f6
diff --git a/libs/gui/Android.bp b/libs/gui/Android.bp
index af9ef06..c5a1855 100644
--- a/libs/gui/Android.bp
+++ b/libs/gui/Android.bp
@@ -161,6 +161,7 @@
 filegroup {
     name: "libgui_bufferqueue_sources",
     srcs: [
+        "BatchBufferOps.cpp",
         "BufferItem.cpp",
         "BufferQueue.cpp",
         "BufferQueueConsumer.cpp",
@@ -171,7 +172,7 @@
         "FrameTimestamps.cpp",
         "GLConsumerUtils.cpp",
         "HdrMetadata.cpp",
-        "QueueBufferInputOutput.cpp",
+        "IGraphicBufferProducerFlattenables.cpp",
         "bufferqueue/1.0/Conversion.cpp",
         "bufferqueue/1.0/H2BProducerListener.cpp",
         "bufferqueue/1.0/WProducerListener.cpp",