summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-02-04 14:01:49 -0600
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2017-04-05 11:42:13 +0200
commit6548a3f083057938c188df8d483451e990e84ee1 (patch)
tree4727408cca3263dacca2ebd9cd493bc4d86eba38
parenteb9cae14dda568b16b40f022f4467f2ee1d9b6e0 (diff)
downloaddrm_hwcomposer-6548a3f083057938c188df8d483451e990e84ee1.tar.gz
drm_hwcomposer-6548a3f083057938c188df8d483451e990e84ee1.tar.xz
HACK: add rotation defines
These should come from kernel headers
-rw-r--r--drmdisplaycompositor.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/drmdisplaycompositor.cpp b/drmdisplaycompositor.cpp
index 2ba6f70..a6a3d9e 100644
--- a/drmdisplaycompositor.cpp
+++ b/drmdisplaycompositor.cpp
@@ -483,6 +483,16 @@ int DrmDisplayCompositor::PrepareFrame(DrmDisplayComposition *display_comp) {
return ret;
}
+/* rotation property bits copied from kernel*/
+#define DRM_ROTATE_MASK 0x0f
+#define DRM_ROTATE_0 0
+#define DRM_ROTATE_90 1
+#define DRM_ROTATE_180 2
+#define DRM_ROTATE_270 3
+#define DRM_REFLECT_MASK (~DRM_ROTATE_MASK)
+#define DRM_REFLECT_X 4
+#define DRM_REFLECT_Y 5
+
int DrmDisplayCompositor::CommitFrame(DrmDisplayComposition *display_comp,
bool test_only) {
ATRACE_CALL();