OSDN Git Service

HACK: add rotation defines
authorRob Herring <robh@kernel.org>
Thu, 4 Feb 2016 20:01:49 +0000 (14:01 -0600)
committerRob Herring <robh@kernel.org>
Mon, 2 May 2016 02:16:22 +0000 (21:16 -0500)
These should come from kernel headers

drmdisplaycompositor.cpp

index 9f1825c..e8327cd 100644 (file)
@@ -594,6 +594,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();