Closed
Bug 1418869
Opened 7 years ago
Closed 7 years ago
WebRenderImageData::UpdateImageKey is slow
Categories
(Core :: Graphics: WebRender, enhancement, P1)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: ethlin, Assigned: ethlin)
References
Details
(Whiteboard: [wr-mvp])
Attachments
(1 file)
Gecko profiler link: https://perfht.ml/2hwBjdL
We copy the buffer in GetAsSourceSurface[1] when the image is a TextureWrapperImage. For fallback items, we shouldn't try to share them.
[1] https://dxr.mozilla.org/mozilla-central/rev/a3f183201f7f183c263d554bfb15fbf0b0ed2ea4/gfx/layers/ipc/SharedSurfacesChild.cpp#258
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage]
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [wr-mvp] [triage] → [wr-mvp]
Assignee | ||
Comment 2•7 years ago
|
||
According to the gecko profiler, 22% of the RenderLayer is in WebRenderImageData::UpdateImageKey.
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8929960 [details]
Bug 1418869 - Do not try to share the fallback images.
https://reviewboard.mozilla.org/r/201120/#review206326
Nice catch. I did not consider how expensive GetAsSourceSurface could be for some types.
Attachment #8929960 -
Flags: review?(aosmond) → review+
Pushed by ethlin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ec7ff1ef12d3
Do not try to share the fallback images. r=aosmond
Comment 5•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•