Update the fuzzers to use the flag SurfaceTypes
We are currently limitig the use of IGBPs outside of libgui to allow for
further development of bufferqueues without external breakages. More
information at go/warren-buffers.
BYPASS_IGBP_IGBC_API_REASON: this CL is part of the migration.
Bug: 342197851
Test: atest camera_client_test
Flag: com.android.graphics.libgui.flags.wb_libcameraservice
Change-Id: I4e7f57a11f536baf0902b83480f4191dad775368
diff --git a/camera/tests/CameraBinderTests.cpp b/camera/tests/CameraBinderTests.cpp
index 5f7f2f6..89fc033 100644
--- a/camera/tests/CameraBinderTests.cpp
+++ b/camera/tests/CameraBinderTests.cpp
@@ -548,10 +548,9 @@
opaqueConsumer->setDefaultBufferFormat(HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED));
sp<Surface> surface = opaqueConsumer->getSurface();
-
- sp<IGraphicBufferProducer> producer = surface->getIGraphicBufferProducer();
+ ParcelableSurfaceType pSurface = flagtools::surfaceToParcelableSurfaceType(surface);
std::string noPhysicalId;
- OutputConfiguration output(producer, /*rotation*/ 0, noPhysicalId);
+ OutputConfiguration output(pSurface, /*rotation*/ 0, noPhysicalId);
#else
sp<IGraphicBufferProducer> gbProducer;
sp<IGraphicBufferConsumer> gbConsumer;