summaryrefslogtreecommitdiffstats
path: root/sdm/libs
diff options
context:
space:
mode:
authorDileep Marchya <dmarchya@codeaurora.org>2015-07-06 11:37:06 -0700
committerDileep Marchya <dmarchya@codeaurora.org>2015-07-07 08:08:08 -0700
commit511fb6d15cc146644a9575e70e82076de75b74af (patch)
tree5b2b941e6f7a34dd1a07a09fe2185e12dbd26a33 /sdm/libs
parent858465aec2380437916338e0361f0f354f3cbd55 (diff)
downloadhardware_qcom_display-511fb6d15cc146644a9575e70e82076de75b74af.tar.gz
hardware_qcom_display-511fb6d15cc146644a9575e70e82076de75b74af.tar.bz2
hardware_qcom_display-511fb6d15cc146644a9575e70e82076de75b74af.zip
sdm: Add a property to disable scalar
- Add 'sdm.debug.disable_scalar' property to disable scalar. Change-Id: Iee0128cc06f1d78ddec011d34086c2c1d7ba3059
Diffstat (limited to 'sdm/libs')
-rw-r--r--sdm/libs/utils/debug.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/sdm/libs/utils/debug.cpp b/sdm/libs/utils/debug.cpp
index f24008254..98f5626d0 100644
--- a/sdm/libs/utils/debug.cpp
+++ b/sdm/libs/utils/debug.cpp
@@ -120,5 +120,12 @@ bool Debug::IsRotatorSplitDisabled() {
return (value == 1);
}
+bool Debug::IsScalarDisabled() {
+ int value = 0;
+ debug_.debug_handler_->GetProperty("sdm.debug.disable_scalar", &value);
+
+ return (value == 1);
+}
+
} // namespace sdm