!4553 新Skia enable persist.release.gpuresource

Merge pull request !4553 from JIAHE LIU/skia_0_2
This commit is contained in:
openharmony_ci 2023-05-17 04:01:31 +00:00 committed by Gitee
commit c3841e1f2a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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()