Closed Bug 1143506 Opened 9 years ago Closed 9 years ago

Give up on sync decoding if we get DrawResult::BAD_IMAGE

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: seth, Assigned: seth)

References

Details

Attachments

(1 file)

It's possible to get the reftest harness into an infinite drawing loop if we ever return DrawResult::BAD_IMAGE, because DrawResult::BAD_IMAGE is unrecoverable, but we'll keep trying to draw because ShouldInvalidateToSyncDecodeImages() keeps returning true.

Let's make it return false in this scenario.

This is currently causing the 944353.jpg crashtest to fail intermittently. Once downscale-during-decode is enabled, it becomes permafail, so we need to land this first.
Here's the patch. It's a one-liner.
Attachment #8577792 - Flags: review?(tnikkel)
Attachment #8577792 - Flags: review?(tnikkel) → review+
https://hg.mozilla.org/mozilla-central/rev/c82354a9cf84
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: