Kaydet (Commit) c1f04103 authored tarafından Adrien Ollier's avatar Adrien Ollier Kaydeden (comit) Julien Nabet

inverts the tests for performance optimization

Change-Id: Ib65ec7fd957ab19c703d31da9eb74390126d2d04
Signed-off-by: 's avatarAdrien Ollier <adr.ollier@hotmail.fr>
Reviewed-on: https://gerrit.libreoffice.org/71881
Tested-by: Jenkins
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 76374aa9
......@@ -115,13 +115,14 @@ bool Animation::IsTransparent() const
// as the application (?) does not invalidate on non-transparent
// graphics due to performance reasons.
return std::any_of(maList.begin(), maList.end(),
[&aRect](const std::unique_ptr<AnimationBitmap>& pAnim) -> bool {
return pAnim->meDisposal == Disposal::Back
&& tools::Rectangle{ pAnim->maPositionPixel, pAnim->maSizePixel }
!= aRect;
})
|| maBitmapEx.IsTransparent();
return maBitmapEx.IsTransparent()
|| std::any_of(maList.begin(), maList.end(),
[&aRect](const std::unique_ptr<AnimationBitmap>& pAnim) -> bool {
return pAnim->meDisposal == Disposal::Back
&& tools::Rectangle{ pAnim->maPositionPixel,
pAnim->maSizePixel }
!= aRect;
});
}
sal_uLong Animation::GetSizeBytes() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment