Closed Bug 1444387 Opened 6 years ago Closed 6 years ago

Images briefly use fallback when they should not

Categories

(Core :: Graphics: WebRender, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

Details

(Whiteboard: [gfx-noted])

Attachments

(2 files)

Images appear to be resorting to fallback when the image container is empty. This can happen easily when we are in the process of decoding an image, but we haven't produced a surface yet. Rather than just wait like it should, it ends up creating an image client and external image ID for no reason. Since we are racing against the decoder thread, it is also possible that it *does* get the complete image in the meantime, so it uploads a copy of the image using said image client.
Assignee: nobody → aosmond
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [gfx-noted]
Attachment #8957543 - Flags: review?(jmuizelaar)
Attachment #8957544 - Flags: review?(jmuizelaar)
Comment on attachment 8957543 [details] [diff] [review]
0001-Bug-1444387-Part-1.-Avoid-using-fallback-if-an-image.patch, v1

Review of attachment 8957543 [details] [diff] [review]:
-----------------------------------------------------------------

Maybe add a comment about why we're ignoring the return value?
Attachment #8957544 - Flags: review?(jmuizelaar) → review+
Attachment #8957543 - Flags: review?(jmuizelaar) → review+
(In reply to Jeff Muizelaar [:jrmuizel] from comment #3)
> Comment on attachment 8957543 [details] [diff] [review]
> 0001-Bug-1444387-Part-1.-Avoid-using-fallback-if-an-image.patch, v1
> 
> Review of attachment 8957543 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Maybe add a comment about why we're ignoring the return value?

Will do before landing.
Pushed by aosmond@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/68ab33989e63
Part 1. Avoid using fallback if an image is not ready. r=jrmuizel
https://hg.mozilla.org/integration/mozilla-inbound/rev/16155f54ef56
Part 2. Ensure we use NOT_READY for empty image containers with WebRender. r=jrmuizel
https://hg.mozilla.org/mozilla-central/rev/68ab33989e63
https://hg.mozilla.org/mozilla-central/rev/16155f54ef56
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: