summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-04-04 16:37:38 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-04-04 16:37:38 +0000
commit72e720a93b29a6ec581613cf91454ece54d9723c (patch)
tree47e54a39fe3d373517c97af2c7872fcca82a5dd4
parentb30f2dd6188255e61c53ce9d51d174615227290e (diff)
parent896a661ddd4a989eb3b877c00a7d3abfd13bcbd2 (diff)
Merge "surface_control: Add ABI type information to `enum`s" into main
-rw-r--r--include/android/surface_control.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/android/surface_control.h b/include/android/surface_control.h
index 1237aa6f1c..443cb7e51f 100644
--- a/include/android/surface_control.h
+++ b/include/android/surface_control.h
@@ -303,7 +303,7 @@ void ASurfaceTransaction_reparent(ASurfaceTransaction* transaction,
/**
* Parameter for ASurfaceTransaction_setVisibility().
*/
-enum {
+enum ASurfaceTransactionVisibility : int8_t {
ASURFACE_TRANSACTION_VISIBILITY_HIDE = 0,
ASURFACE_TRANSACTION_VISIBILITY_SHOW = 1,
};
@@ -315,7 +315,8 @@ enum {
* Available since API level 29.
*/
void ASurfaceTransaction_setVisibility(ASurfaceTransaction* transaction,
- ASurfaceControl* surface_control, int8_t visibility)
+ ASurfaceControl* surface_control,
+ enum ASurfaceTransactionVisibility visibility)
__INTRODUCED_IN(29);
/**
@@ -436,7 +437,7 @@ void ASurfaceTransaction_setScale(ASurfaceTransaction* transaction,
/**
* Parameter for ASurfaceTransaction_setBufferTransparency().
*/
-enum {
+enum ASurfaceTransactionTransparency : int8_t {
ASURFACE_TRANSACTION_TRANSPARENCY_TRANSPARENT = 0,
ASURFACE_TRANSACTION_TRANSPARENCY_TRANSLUCENT = 1,
ASURFACE_TRANSACTION_TRANSPARENCY_OPAQUE = 2,
@@ -450,7 +451,7 @@ enum {
*/
void ASurfaceTransaction_setBufferTransparency(ASurfaceTransaction* transaction,
ASurfaceControl* surface_control,
- int8_t transparency)
+ enum ASurfaceTransactionTransparency transparency)
__INTRODUCED_IN(29);
/**