android: CameraDevice: Mark getResultMetadata() const function

CameraDevice::getResultMetadata() doesn't change either
|descriptor| and member variables. It should be marked as a
const function and |descriptor| should be passed with const
lvalue reference.

Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Hirokazu Honda 2021-03-25 20:13:56 +09:00 committed by Laurent Pinchart
parent f101cc6878
commit 82b8151aa7
2 changed files with 7 additions and 6 deletions

View file

@ -102,7 +102,8 @@ private:
libcamera::PixelFormat toPixelFormat(int format) const;
int processControls(Camera3RequestDescriptor *descriptor);
std::unique_ptr<CameraMetadata> getResultMetadata(
Camera3RequestDescriptor *descriptor, int64_t timestamp);
const Camera3RequestDescriptor &descriptor,
int64_t timestamp) const;
unsigned int id_;
camera3_device_t camera3Device_;