Closed
Bug 1401672
Opened 7 years ago
Closed 7 years ago
We seem to duplicate gmail images
Categories
(Core :: Graphics: WebRender, enhancement, P1)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox57 | --- | unaffected |
firefox58 | --- | unaffected |
firefox59 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: aosmond)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [wr-mvp] [gfx-noted])
Attachments
(1 file)
24.53 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
If you look at the yaml here: https://jrmuizel.github.io/webrender/gmail.zip we have multiple copies of the same image. This could be a yaml problem but if it's not we should stop doing it.
Reporter | ||
Comment 1•7 years ago
|
||
This can be reproduced using: https://jrmuizel.github.io/webrender/sprite.html
Reporter | ||
Comment 2•7 years ago
|
||
I confirmed that we seem to be sending this multiple times.
Reporter | ||
Comment 3•7 years ago
|
||
I believe this will probably be fixed by Andrew's shared image stuff. I.e. we should be maintaining the image key on the image lib object and not on the display item.
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage]
Updated•7 years ago
|
Priority: -- → P3
Whiteboard: [wr-mvp] [triage] → [wr-reserve]
Updated•7 years ago
|
Whiteboard: [wr-reserve] → [gfx-noted]
Updated•7 years ago
|
Blocks: stage-wr-trains
Updated•7 years ago
|
Priority: P3 → P2
Whiteboard: [gfx-noted] → [wr-mvp] [gfx-noted]
Updated•7 years ago
|
status-firefox57:
--- → unaffected
status-firefox58:
--- → unaffected
Comment 4•7 years ago
|
||
:jrmuizel, could we close this bug, since bug 1331944 is addressed?
Flags: needinfo?(jmuizelaar)
Reporter | ||
Comment 5•7 years ago
|
||
Probably. I'll do a new recording and confirm that it's fixed.
Flags: needinfo?(jmuizelaar)
Assignee | ||
Comment 6•7 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #3)
> I believe this will probably be fixed by Andrew's shared image stuff. I.e.
> we should be maintaining the image key on the image lib object and not on
> the display item.
FWIW, it doesn't maintain the image key in the imagelib surface. It does maintain an external image ID, which is mapped to as many image keys as needed by the display items. If recording is turned on, it still dupes the image data in WebRenderBridgeParent::AddExternalImage; all you saved was the initial copy from the content process to the GPU process.
Reporter | ||
Comment 7•7 years ago
|
||
(In reply to Andrew Osmond [:aosmond] from comment #6)
>
> FWIW, it doesn't maintain the image key in the imagelib surface. It does
> maintain an external image ID, which is mapped to as many image keys as
> needed by the display items. If recording is turned on, it still dupes the
> image data in WebRenderBridgeParent::AddExternalImage; all you saved was the
> initial copy from the content process to the GPU process.
What prevents us from reusing the same image key for all the display items?
Reporter | ||
Updated•7 years ago
|
Assignee: nobody → aosmond
Updated•7 years ago
|
Status: NEW → ASSIGNED
Priority: P2 → P1
Reporter | ||
Comment 8•7 years ago
|
||
FWIW, this bug is contributing to our low motionmark scores. It uses the same image a bunch.
Assignee | ||
Comment 9•7 years ago
|
||
Seems to avoid any duplicate images in the yaml on gmail :D.
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=6c9b2b334190605487c206c1b455b94c76aa7a33
Updated•7 years ago
|
Blocks: motionmark
Reporter | ||
Comment 10•7 years ago
|
||
Is anything blocking this from further progress?
Flags: needinfo?(aosmond)
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(aosmond)
Attachment #8927846 -
Flags: review?(jmuizelaar)
Reporter | ||
Comment 11•7 years ago
|
||
Comment on attachment 8927846 [details] [diff] [review]
0002-Bug-1401672-Make-display-items-for-the-same-WebRende.patch
Review of attachment 8927846 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/ipc/SharedSurfacesChild.cpp
@@ +275,5 @@
> {
> MOZ_ASSERT(NS_IsMainThread());
>
> + auto i = aKeys.Length();
> + while (i > 0) {
for key in aKeys
Attachment #8927846 -
Flags: review?(jmuizelaar) → review+
Comment 12•7 years ago
|
||
Pushed by aosmond@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0ad4e810bab1
Make display items for the same WebRenderBridgeParent/Child share the ImageKey for shared surfaces. r=jrmuizel
Comment 13•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•7 years ago
|
Flags: qe-verify+
Not sure we can have QE test this without specially instrumented builds, so I would make this qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•