Loading camera/camera_platform.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -218,3 +218,10 @@ flag { description: "Enable CameraServiceWatchdog to abort camera HAL to generate HAL tombstones" bug: "349652177" } flag { namespace: "camera_platform" name: "enable_stream_reconfiguration_for_unchanged_streams" description: "Enable stream reconfiguration for unchanged streams" bug: "341740105" } services/camera/libcameraservice/device3/Camera3Stream.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,9 @@ #include "ui/GraphicBufferMapper.h" #include <cutils/properties.h> #include <com_android_internal_camera_flags.h> namespace flags = com::android::internal::camera::flags; namespace android { Loading Loading @@ -388,6 +391,10 @@ status_t Camera3Stream::finishConfiguration(/*out*/bool* streamReconfigured) { mOldDataSpace == camera_stream::data_space && mOldFormat == camera_stream::format) { mState = STATE_CONFIGURED; if (flags::enable_stream_reconfiguration_for_unchanged_streams() && streamReconfigured != nullptr) { *streamReconfigured = true; } return OK; } Loading Loading
camera/camera_platform.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -218,3 +218,10 @@ flag { description: "Enable CameraServiceWatchdog to abort camera HAL to generate HAL tombstones" bug: "349652177" } flag { namespace: "camera_platform" name: "enable_stream_reconfiguration_for_unchanged_streams" description: "Enable stream reconfiguration for unchanged streams" bug: "341740105" }
services/camera/libcameraservice/device3/Camera3Stream.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,9 @@ #include "ui/GraphicBufferMapper.h" #include <cutils/properties.h> #include <com_android_internal_camera_flags.h> namespace flags = com::android::internal::camera::flags; namespace android { Loading Loading @@ -388,6 +391,10 @@ status_t Camera3Stream::finishConfiguration(/*out*/bool* streamReconfigured) { mOldDataSpace == camera_stream::data_space && mOldFormat == camera_stream::format) { mState = STATE_CONFIGURED; if (flags::enable_stream_reconfiguration_for_unchanged_streams() && streamReconfigured != nullptr) { *streamReconfigured = true; } return OK; } Loading