enable persist.release.gpuresource

Signed-off-by: liujiahe (D) <liujiahe5@huawei.com>
This commit is contained in:
liujiahe (D) 2023-05-16 21:29:11 +08:00
parent 67eaa1ac1e
commit 97dc938984

View File

@ -117,13 +117,8 @@ PartialRenderType RSSystemProperties::GetUniPartialRenderEnabled()
ReleaseGpuResourceType RSSystemProperties::GetReleaseGpuResourceEnabled()
{
#ifdef NEW_SKIA
return static_cast<ReleaseGpuResourceType>(
std::atoi((system::GetParameter("persist.release.gpuresource.enabled", "0")).c_str()));
#else
return static_cast<ReleaseGpuResourceType>(
std::atoi((system::GetParameter("persist.release.gpuresource.enabled", "2")).c_str()));
#endif
}
bool RSSystemProperties::GetOcclusionEnabled()