summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Foss <robert.foss@collabora.com>2016-09-30 10:27:23 -0400
committerRobert Foss <robert.foss@collabora.com>2017-03-22 14:38:43 -0400
commit7970d2fc15396ff019f5d635a8ed7dd01b5c32dd (patch)
treecc8494f1c9145e5b5b18f43508fa346e6a2337f8
parent172b45221148299b57ea59b861d754adc1e270f4 (diff)
downloaddrm_hwcomposer-7970d2fc15396ff019f5d635a8ed7dd01b5c32dd.tar.gz
drm_hwcomposer-7970d2fc15396ff019f5d635a8ed7dd01b5c32dd.tar.xz
drm_hwcomposer: Add support for IN_FENCE_FD property to drmplane
Add support for the IN_FENCE_FD property to DrmPlane. BUG=None TEST=Tested on Qemu+drm_hwcomposer Change-Id: I36b602879ea1ba2803f7a8c7f52e83e1f62f1c91 Signed-off-by: Robert Foss <robert.foss@collabora.com>
-rw-r--r--drmplane.cpp8
-rw-r--r--drmplane.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/drmplane.cpp b/drmplane.cpp
index c4ea722..1f739ae 100644
--- a/drmplane.cpp
+++ b/drmplane.cpp
@@ -126,6 +126,10 @@ int DrmPlane::Init() {
if (ret)
ALOGI("Could not get alpha property");
+ ret = drm_->GetPlaneProperty(*this, "IN_FENCE_FD", &in_fence_fd_property_);
+ if (ret)
+ ALOGI("Could not get IN_FENCE_FD property");
+
return 0;
}
@@ -188,4 +192,8 @@ const DrmProperty &DrmPlane::rotation_property() const {
const DrmProperty &DrmPlane::alpha_property() const {
return alpha_property_;
}
+
+const DrmProperty &DrmPlane::in_fence_fd_property() const {
+ return in_fence_fd_property_;
+}
}
diff --git a/drmplane.h b/drmplane.h
index 2e06986..5b73b08 100644
--- a/drmplane.h
+++ b/drmplane.h
@@ -54,6 +54,7 @@ class DrmPlane {
const DrmProperty &src_h_property() const;
const DrmProperty &rotation_property() const;
const DrmProperty &alpha_property() const;
+ const DrmProperty &in_fence_fd_property() const;
private:
DrmResources *drm_;
@@ -75,6 +76,7 @@ class DrmPlane {
DrmProperty src_h_property_;
DrmProperty rotation_property_;
DrmProperty alpha_property_;
+ DrmProperty in_fence_fd_property_;
};
}