开启绘制布局边界改成property

Signed-off-by: xiexiyun <xiexiyun@huawei.com>
Change-Id: Ib2629c7e461c613f4673c96c23d0ca7236cb3973
This commit is contained in:
xiexiyun
2022-04-18 14:47:49 +08:00
parent 768234cfcd
commit 0ab0d6d770
+6
View File
@@ -56,6 +56,12 @@ bool IsTraceEnabled()
bool IsDebugBoundaryEnabled()
{
if (system::GetParameter("persist.ace.rosen.debug.boundary.enabled", "0") == "1") {
return true;
}
if (system::GetParameter("persist.ace.rosen.debug.boundary.enabled", "0") == "2") {
return false;
}
return access(ENABLE_DEBUG_BOUNDARY_FILE_PATH, F_OK) == 0;
}