aboutsummaryrefslogtreecommitdiff
path: root/drmplane.cpp
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2015-07-14 15:51:52 -0400
committerSean Paul <seanpaul@chromium.org>2015-07-16 14:06:51 -0400
commit1c4c32635df1f45bbcf63c8c1a76207ca90402e5 (patch)
tree181786fc1cac2a1ca46aec80a56bedd88c9b61a7 /drmplane.cpp
parent7f26826567ab53c1ebacdd3d7deb5ce4d566ce84 (diff)
downloaddrm_hwcomposer-1c4c32635df1f45bbcf63c8c1a76207ca90402e5.tar.gz
drm_hwcomposer: Add rotation support for hw planes
This patch adds support for transformed layers by using the rotation property on drm planes. Bug: chrome-os-partner:42093 Test: On smaug using adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:<R> Change-Id: I86bb8ef2f77b5d046a5fddd57db4b87070b5801f Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drmplane.cpp')
-rw-r--r--drmplane.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/drmplane.cpp b/drmplane.cpp
index d6ac875..3f17d7c 100644
--- a/drmplane.cpp
+++ b/drmplane.cpp
@@ -120,6 +120,10 @@ int DrmPlane::Init() {
return ret;
}
+ ret = drm_->GetPlaneProperty(*this, "rotation", &rotation_property_);
+ if (ret)
+ ALOGE("Could not get rotation property");
+
return 0;
}
@@ -174,4 +178,8 @@ const DrmProperty &DrmPlane::src_w_property() const {
const DrmProperty &DrmPlane::src_h_property() const {
return src_h_property_;
}
+
+const DrmProperty &DrmPlane::rotation_property() const {
+ return rotation_property_;
+}
}