diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-06-20 08:17:03 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-06-20 08:17:03 +0000 |
commit | b15f3ff0c54246a749cbd8cc9efde04396441df9 (patch) | |
tree | 7d14dbebd7c79001a6f1e86c1d248242d29463c4 | |
parent | feaa98e24b86cd7d68b53d02063a675a55719a45 (diff) | |
parent | 347ebe20edf361fa3930a70d289b0e7afa1474cb (diff) | |
download | libhardware-b15f3ff0c54246a749cbd8cc9efde04396441df9.tar.gz |
release-request-95cbb47d-b12d-4748-8934-a5ed56cbe040-for-git_oc-dr1-release-4116076 snap-temp-L12600000075746614
Change-Id: I6ef6d08be315584fd4b9b0fd78dbd8253e8d9670
-rw-r--r-- | include/hardware/hwcomposer2.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/hardware/hwcomposer2.h b/include/hardware/hwcomposer2.h index d5a0d6f0..11c9bdd0 100644 --- a/include/hardware/hwcomposer2.h +++ b/include/hardware/hwcomposer2.h @@ -104,6 +104,17 @@ typedef enum { * In the future, CTS tests will require present time to be reliable. */ HWC2_CAPABILITY_PRESENT_FENCE_IS_NOT_RELIABLE = 3, + + /* Specifies that a device is able to skip the validateDisplay call before + * receiving a call to presentDisplay. The client will always skip + * validateDisplay and try to call presentDisplay regardless of the changes + * in the properties of the layers. If the device returns anything else than + * HWC2_ERROR_NONE, it will call validateDisplay then presentDisplay again. + * For this capability to be worthwhile the device implementation of + * presentDisplay should fail as fast as possible in the case a + * validateDisplay step is needed. + */ + HWC2_CAPABILITY_SKIP_VALIDATE= 4, } hwc2_capability_t; /* Possible composition types for a given layer */ @@ -564,6 +575,7 @@ enum class Capability : int32_t { SidebandStream = HWC2_CAPABILITY_SIDEBAND_STREAM, SkipClientColorTransform = HWC2_CAPABILITY_SKIP_CLIENT_COLOR_TRANSFORM, PresentFenceIsNotReliable = HWC2_CAPABILITY_PRESENT_FENCE_IS_NOT_RELIABLE, + SkipValidate = HWC2_CAPABILITY_SKIP_VALIDATE, }; TO_STRING(hwc2_capability_t, Capability, getCapabilityName) |