diff options
Diffstat (limited to 'services/camera/libcameraservice/camera2/Parameters.h')
-rw-r--r-- | services/camera/libcameraservice/camera2/Parameters.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/camera2/Parameters.h b/services/camera/libcameraservice/camera2/Parameters.h index 8a8645ee..54b1e8cb 100644 --- a/services/camera/libcameraservice/camera2/Parameters.h +++ b/services/camera/libcameraservice/camera2/Parameters.h @@ -100,6 +100,9 @@ struct Parameters { Area(int left, int top, int right, int bottom, int weight): left(left), top(top), right(right), bottom(bottom), weight(weight) {} + bool isEmpty() const { + return (left == 0) && (top == 0) && (right == 0) && (bottom == 0); + } }; Vector<Area> focusingAreas; |