Bug 1775495 - Avoid trigger extra async image decodes when sync decodes are requested...
commit2a6e181df2a0961595a10bba5d141b8ca15bbf2b
authorAndrew Osmond <aosmond@mozilla.com>
Wed, 22 Jun 2022 17:31:28 +0000 (22 17:31 +0000)
committerAndrew Osmond <aosmond@mozilla.com>
Wed, 22 Jun 2022 17:31:28 +0000 (22 17:31 +0000)
tree7586e262ab6918ebc30c798945b405d87b9e99c9
parent10b3954a76f032be9e6c3e438ea17b8839886f6f
Bug 1775495 - Avoid trigger extra async image decodes when sync decodes are requested. r=jrmuizel

When we request a sync decode, if there is an outstanding pending
async decode, but we don't have all the network data, we would end up
triggering an extra async decode. This patch ensures that we only
trigger sync decodes if they will actually execute as sync.

Differential Revision: https://phabricator.services.mozilla.com/D150008
image/RasterImage.cpp