mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 05:49:27 +00:00
aidl: Set explicit defaults to enum-type fields
Fixes: 179853398 Test: mma in hardware/interfaces/graphics Change-Id: I6f93bca4ba3c8d538765fc9a811b9050c6142cc3
This commit is contained in:
@@ -21,7 +21,7 @@ parcelable HardwareBufferDescription {
|
||||
int width;
|
||||
int height;
|
||||
int layers;
|
||||
android.hardware.graphics.common.PixelFormat format;
|
||||
android.hardware.graphics.common.BufferUsage usage;
|
||||
android.hardware.graphics.common.PixelFormat format = android.hardware.graphics.common.PixelFormat.UNSPECIFIED;
|
||||
android.hardware.graphics.common.BufferUsage usage = android.hardware.graphics.common.BufferUsage.CPU_READ_NEVER;
|
||||
int stride;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ parcelable HardwareBufferDescription {
|
||||
int width;
|
||||
int height;
|
||||
int layers;
|
||||
PixelFormat format;
|
||||
BufferUsage usage;
|
||||
PixelFormat format = PixelFormat.UNSPECIFIED;
|
||||
BufferUsage usage = BufferUsage.CPU_READ_NEVER;
|
||||
int stride;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user