summaryrefslogtreecommitdiff
path: root/drmdisplaycomposition.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 /drmdisplaycomposition.cpp
parent7f26826567ab53c1ebacdd3d7deb5ce4d566ce84 (diff)
downloaddrm_hwcomposer-1c4c32635df1f45bbcf63c8c1a76207ca90402e5.tar.gz
drm_hwcomposer-1c4c32635df1f45bbcf63c8c1a76207ca90402e5.tar.xz
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 'drmdisplaycomposition.cpp')
-rw-r--r--drmdisplaycomposition.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/drmdisplaycomposition.cpp b/drmdisplaycomposition.cpp
index 364a64e..d8dc886 100644
--- a/drmdisplaycomposition.cpp
+++ b/drmdisplaycomposition.cpp
@@ -85,9 +85,6 @@ bool DrmDisplayComposition::validate_composition_type(DrmCompositionType des) {
int DrmDisplayComposition::AddLayer(hwc_layer_1_t *layer, hwc_drm_bo_t *bo,
DrmCrtc *crtc, DrmPlane *plane) {
- if (layer->transform != 0)
- return -EINVAL;
-
if (!validate_composition_type(DRM_COMPOSITION_TYPE_FRAME))
return -EINVAL;