diff options
author | Vince Chiu <vincechiu@google.com> | 2019-12-19 06:23:10 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-12-19 06:23:10 +0000 |
commit | 24336232ec72a5e650c56cb5acd83a9ccedc5d35 (patch) | |
tree | fb1abb3f5ef79b08769e1480ade8b7d6ec3815f4 /devices | |
parent | 4001a939cdba890e13c898fa3c9bb3b360c2316e (diff) | |
parent | 62b79d378b9218b345e1f58a47c2579a2ebe9ae7 (diff) | |
download | camera-24336232ec72a5e650c56cb5acd83a9ccedc5d35.tar.gz |
Merge "camera: move IsReconfigurationRequired API implementation to HWL"
Diffstat (limited to 'devices')
-rw-r--r-- | devices/EmulatedCamera/hwl/EmulatedCameraDeviceSessionHWLImpl.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devices/EmulatedCamera/hwl/EmulatedCameraDeviceSessionHWLImpl.h b/devices/EmulatedCamera/hwl/EmulatedCameraDeviceSessionHWLImpl.h index f576021..bde2623 100644 --- a/devices/EmulatedCamera/hwl/EmulatedCameraDeviceSessionHWLImpl.h +++ b/devices/EmulatedCamera/hwl/EmulatedCameraDeviceSessionHWLImpl.h @@ -128,6 +128,17 @@ class EmulatedCameraDeviceSessionHwlImpl : public CameraDeviceSessionHwl { override { return nullptr; } + + status_t IsReconfigurationRequired( + const HalCameraMetadata* /*old_session*/, + const HalCameraMetadata* /*new_session*/, + bool* reconfiguration_required) const override { + if (reconfiguration_required == nullptr) { + return BAD_VALUE; + } + *reconfiguration_required = true; + return OK; + } // End override functions in CameraDeviceSessionHwl private: |