sdm: Add a property to disable scalar
- Add 'sdm.debug.disable_scalar' property to disable scalar. Change-Id: Iee0128cc06f1d78ddec011d34086c2c1d7ba3059
This commit is contained in:
@@ -70,6 +70,7 @@ class Debug {
|
|||||||
static bool IsVideoModeEnabled();
|
static bool IsVideoModeEnabled();
|
||||||
static bool IsRotatorUbwcDisabled();
|
static bool IsRotatorUbwcDisabled();
|
||||||
static bool IsRotatorSplitDisabled();
|
static bool IsRotatorSplitDisabled();
|
||||||
|
static bool IsScalarDisabled();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Debug();
|
Debug();
|
||||||
|
|||||||
@@ -120,5 +120,12 @@ bool Debug::IsRotatorSplitDisabled() {
|
|||||||
return (value == 1);
|
return (value == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Debug::IsScalarDisabled() {
|
||||||
|
int value = 0;
|
||||||
|
debug_.debug_handler_->GetProperty("sdm.debug.disable_scalar", &value);
|
||||||
|
|
||||||
|
return (value == 1);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace sdm
|
} // namespace sdm
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user