summaryrefslogtreecommitdiff
path: root/msm8226/liboverlay
diff options
context:
space:
mode:
authorUday Kishore Pasupuleti <upasupul@codeaurora.org>2015-10-05 09:29:21 -0700
committerPrashant Malani <pmalani@google.com>2015-10-05 12:05:09 -0700
commitf48303a2d8437b83b35c096329713a218b983219 (patch)
tree2c837bad0a3796f2be7ee253088e624ab20781bc /msm8226/liboverlay
parent4c9a29a3c5b26bbfebdb8551334c5444e627ce1e (diff)
downloaddisplay-f48303a2d8437b83b35c096329713a218b983219.tar.gz
overlay: Allow to set target specific max rot session
Set the target specific max rot session with DISPLAY_FEATURE_MAX_ROT_SESSION Bug: 24483502 Change-Id: Id4335ac154a0a3c08fc730c4d3842c6483b55ed3 Signed-off-by: Uday Kishore Pasupuleti <upasupul@codeaurora.org>
Diffstat (limited to 'msm8226/liboverlay')
-rw-r--r--msm8226/liboverlay/overlayRotator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/msm8226/liboverlay/overlayRotator.h b/msm8226/liboverlay/overlayRotator.h
index 64387cd7..40294336 100644
--- a/msm8226/liboverlay/overlayRotator.h
+++ b/msm8226/liboverlay/overlayRotator.h
@@ -222,7 +222,11 @@ public:
//Virtually we can support as many rotator sessions as possible, However
// more number of rotator sessions leads to performance issues, so
// restricting the max rotator session to 4
+#ifdef TARGET_SPECIFIC_MAX_ROT_SESSION
+ enum { MAX_ROT_SESS = TARGET_SPECIFIC_MAX_ROT_SESSION };
+#else
enum { MAX_ROT_SESS = 4 };
+#endif
~RotMgr();
void configBegin();