Skip to content

Commit

Permalink
Make enum use C compatible.
Browse files Browse the repository at this point in the history
Bug: android/ndk#1920
Test: treehugger
Change-Id: Ib8296e7b9c86809d16fbde0787d016095a189387
  • Loading branch information
DanAlbert committed Apr 2, 2024
1 parent 2d0d712 commit dd05718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/android/surface_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ void ASurfaceTransaction_setBuffer(ASurfaceTransaction* transaction,
*/
void ASurfaceTransaction_setColor(ASurfaceTransaction* transaction,
ASurfaceControl* surface_control, float r, float g, float b,
float alpha, ADataSpace dataspace)
float alpha, enum ADataSpace dataspace)
__INTRODUCED_IN(29);

/**
Expand Down Expand Up @@ -497,7 +497,7 @@ void ASurfaceTransaction_setBufferAlpha(ASurfaceTransaction* transaction,
* Available since API level 29.
*/
void ASurfaceTransaction_setBufferDataSpace(ASurfaceTransaction* transaction,
ASurfaceControl* surface_control, ADataSpace data_space)
ASurfaceControl* surface_control, enum ADataSpace data_space)
__INTRODUCED_IN(29);

/**
Expand Down

0 comments on commit dd05718

Please sign in to comment.