mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 695859. Don't progressively display images during decode if we have all of the data. r=bholley
This should reduce the amount of image repainting that happens during download. --HG-- extra : rebase_source : 2dd2ea707e163fbf2ef344ba17e944b5c8f227fd
This commit is contained in:
parent
7c14cd7e41
commit
399ccd4bcc
@ -2839,10 +2839,10 @@ imgDecodeWorker::Run()
|
||||
mDecodeTime += decodeLatency;
|
||||
|
||||
// Flush invalidations _after_ we've written everything we're going to.
|
||||
// Furthermore, if this is a redecode, we don't want to do progressive
|
||||
// Furthermore, if we have all of the data, we don't want to do progressive
|
||||
// display at all. In that case, let Decoder::PostFrameStop() do the
|
||||
// flush once the whole frame is ready.
|
||||
if (!image->mHasBeenDecoded) {
|
||||
if (!image->mHasSourceData) {
|
||||
image->mInDecoder = true;
|
||||
image->mDecoder->FlushInvalidations();
|
||||
image->mInDecoder = false;
|
||||
|
Loading…
Reference in New Issue
Block a user