Mark ASurfaceControl.setGeometry as deprecated.

With the introduction of setCrop, setPosition, setBufferTransform, and
setScale, there's no need for setGeometry. The setGeometry API is
confusing since it's handled in buffer space where all other APIs are
handled in layer space.

Test: N/A
Bug: 185533162
Change-Id: Ief07dbf77f34e942d97ee5b0293b0a038bc1435b
diff --git a/include/android/surface_control.h b/include/android/surface_control.h
index 9881371..351e6fa 100644
--- a/include/android/surface_control.h
+++ b/include/android/surface_control.h
@@ -358,6 +358,11 @@
  * enum.
  *
  * Available since API level 29.
+ *
+ * @deprecated Use setCrop, setPosition, setBufferTransform, and setScale instead. Those functions
+ * provide well defined behavior and allows for more control by the apps. It also allows the caller
+ * to set different properties at different times, instead of having to specify all the desired
+ * properties at once.
  */
 void ASurfaceTransaction_setGeometry(ASurfaceTransaction* transaction,
                                      ASurfaceControl* surface_control, const ARect& source,