commit | 695ef7acfec615967aaa9663d8049d67b6a767e8 | [log] [tgz] |
---|---|---|
author | Jooyung Han <[email protected]> | Tue Apr 27 11:02:09 2021 +0900 |
committer | Jooyung Han <[email protected]> | Tue Apr 27 12:17:39 2021 +0900 |
tree | 2aa377871e90b3a411bb1381a321b6eb9583fa37 | |
parent | 2fff1705623c2af5c7f2c38cd511c32abf9a6afb [diff] |
aidl: Set explicit defaults to enum-type fields Fixes: 179853398 Test: mma in hardware/interfaces/graphics Change-Id: I6f93bca4ba3c8d538765fc9a811b9050c6142cc3
diff --git a/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBufferDescription.aidl b/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBufferDescription.aidl index 8b12169..232e023 100644 --- a/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBufferDescription.aidl +++ b/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBufferDescription.aidl
@@ -21,7 +21,7 @@ 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; }
diff --git a/graphics/common/aidl/android/hardware/graphics/common/HardwareBufferDescription.aidl b/graphics/common/aidl/android/hardware/graphics/common/HardwareBufferDescription.aidl index e1e3492..078c512 100644 --- a/graphics/common/aidl/android/hardware/graphics/common/HardwareBufferDescription.aidl +++ b/graphics/common/aidl/android/hardware/graphics/common/HardwareBufferDescription.aidl
@@ -29,7 +29,7 @@ int width; int height; int layers; - PixelFormat format; - BufferUsage usage; + PixelFormat format = PixelFormat.UNSPECIFIED; + BufferUsage usage = BufferUsage.CPU_READ_NEVER; int stride; }