Lines Matching refs:pipeline

93     auto pipeline = PipelineBase::GetCurrentContextSafely();  in ConvertToVp()  local
94 CHECK_NULL_RETURN(pipeline, 0.0); in ConvertToVp()
96 return value_ / pipeline->GetDipScale(); in ConvertToVp()
99 return value_ / pipeline->GetDipScale(); in ConvertToVp()
105 return value_ * pipeline->GetLogicScale() / pipeline->GetDipScale(); in ConvertToVp()
119 auto pipeline = PipelineBase::GetCurrentContextSafely(); in ConvertToPx() local
120 CHECK_NULL_RETURN(pipeline, 0.0); in ConvertToPx()
122 return value_ * pipeline->GetDipScale(); in ConvertToPx()
128 return value_ * pipeline->GetLogicScale(); in ConvertToPx()
138 auto pipeline = PipelineBase::GetCurrentContextSafely(); in ConvertToFp() local
139 CHECK_NULL_RETURN(pipeline, 0.0); in ConvertToFp()
140 auto fontScale = std::clamp(pipeline->GetFontScale(), 0.0f, pipeline->GetMaxAppFontScale()); in ConvertToFp()
145 return value_ / pipeline->GetDipScale() / fontScale; in ConvertToFp()
148 return value_ / pipeline->GetDipScale() / fontScale; in ConvertToFp()
154 return value_ * pipeline->GetLogicScale() / pipeline->GetDipScale() / fontScale; in ConvertToFp()
178 auto pipeline = PipelineBase::GetCurrentContextSafely(); in ConvertToPxDistribute() local
179 CHECK_NULL_RETURN(pipeline, value_); in ConvertToPxDistribute()
181 return value_ * pipeline->GetDipScale(); in ConvertToPxDistribute()
193 auto pipeline = PipelineBase::GetCurrentContextSafely(); in ConvertToPxByCustomFontScale() local
194 CHECK_NULL_RETURN(pipeline, value_); in ConvertToPxByCustomFontScale()
195 float fontScale = std::clamp(pipeline->GetFontScale(), minFontScale, maxFontScale); in ConvertToPxByCustomFontScale()
196 return value_ * pipeline->GetDipScale() * fontScale; in ConvertToPxByCustomFontScale()
201 auto pipeline = PipelineBase::GetCurrentContextSafely(); in ConvertToPxByAppFontScale() local
202 CHECK_NULL_RETURN(pipeline, value_); in ConvertToPxByAppFontScale()
203 float maxFontScale = pipeline->GetMaxAppFontScale(); in ConvertToPxByAppFontScale()
204 float fontScale = std::clamp(pipeline->GetFontScale(), minFontScale, maxFontScale); in ConvertToPxByAppFontScale()
205 return value_ * pipeline->GetDipScale() * fontScale; in ConvertToPxByAppFontScale()
210 auto pipeline = PipelineBase::GetCurrentContextSafely(); in ConvertToVpByAppFontScale() local
211 CHECK_NULL_RETURN(pipeline, value_); in ConvertToVpByAppFontScale()
212 CHECK_NULL_RETURN(pipeline->IsFollowSystem(), value_); in ConvertToVpByAppFontScale()
213 float maxFontScale = pipeline->GetMaxAppFontScale(); in ConvertToVpByAppFontScale()
214 float fontScale = std::clamp(pipeline->GetFontScale(), 0.0f, maxFontScale); in ConvertToVpByAppFontScale()