mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00: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
d8d89b43de
commit
c5d55e227a
@ -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