summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Sanglard <sanglardf@google.com>2017-06-13 14:56:08 -0700
committerFabien Sanglard <sanglardf@google.com>2017-06-19 23:22:23 +0000
commit4ab926a39e7eb437733a6f853df1f1f44cc54208 (patch)
tree83cba55c5aee6eaa3b5fe012c84af433466ee6f2
parenta6ff1a46987a138fd611f25d15022eb06e2bdaaf (diff)
downloadlibhardware-oreo-dev.tar.gz
Add Skip Validate capability to hwc2 interfaceandroid-vts-8.0_r2android-vts-8.0_r1oreo-dev
Change-Id: I716100780f820574440abc5a247ea7071b630113
-rw-r--r--include/hardware/hwcomposer2.h12
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)