summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2015-07-09 05:54:41 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-07-09 05:54:41 -0700
commita4e6885ef9ec308bc3d8dfc0856c16b05f458ed1 (patch)
tree65144d0dc539bc3107e7d9ea9104eea9e83acec6
parent5164cd4f64d812bf08ce095cb20beb0cb90a8dc7 (diff)
parent511fb6d15cc146644a9575e70e82076de75b74af (diff)
downloadhardware_qcom_display-a4e6885ef9ec308bc3d8dfc0856c16b05f458ed1.tar.gz
hardware_qcom_display-a4e6885ef9ec308bc3d8dfc0856c16b05f458ed1.tar.bz2
hardware_qcom_display-a4e6885ef9ec308bc3d8dfc0856c16b05f458ed1.zip
Merge "sdm: Add a property to disable scalar"
-rw-r--r--sdm/include/utils/debug.h1
-rw-r--r--sdm/libs/utils/debug.cpp7
2 files changed, 8 insertions, 0 deletions
diff --git a/sdm/include/utils/debug.h b/sdm/include/utils/debug.h
index 0d64bbfa9..a384509d7 100644
--- a/sdm/include/utils/debug.h
+++ b/sdm/include/utils/debug.h
@@ -70,6 +70,7 @@ class Debug {
static bool IsVideoModeEnabled();
static bool IsRotatorUbwcDisabled();
static bool IsRotatorSplitDisabled();
+ static bool IsScalarDisabled();
private:
Debug();
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