Closed
Bug 1356960
Opened 7 years ago
Closed 7 years ago
Avoid to allocate WebRenderTextureHost for TextureHost of VideoBridgeParent and VRManagerParent
Categories
(Core :: Graphics: WebRender, enhancement)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: sotaro, Assigned: sotaro)
References
Details
Attachments
(1 file)
WebRenderTextureHost is created for TextureHosts of VideoBridgeParent and VRManagerParent. It is not necessary.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → sotaro.ikeda.g
Assignee | ||
Comment 1•7 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #0) > WebRenderTextureHost is created for TextureHosts of VideoBridgeParent and > VRManagerParent. It is not necessary. We need to wrap only TextureHosts of ImageBridgeParent and CompositorBridgeParentBase.
Assignee | ||
Comment 2•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8858724 -
Flags: review?(hshih)
Assignee | ||
Comment 3•7 years ago
|
||
VideoBridgeParent is used like in the following diagram. https://github.com/sotaroikeda/firefox-diagrams/blob/master/media/dom_media_VideoDecoderManager_54.pdf
Comment 4•7 years ago
|
||
Comment on attachment 8858724 [details] [diff] [review] patch - Avoid to allocate WebRenderTextureHost for TextureHost of VideoBridgeParent and VRManagerParent Review of attachment 8858724 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/layers/composite/TextureHost.cpp @@ +96,5 @@ > { > if (!gfxVars::UseWebRender() || > (aFlags & TextureFlags::SNAPSHOT) || > + (aBackend != LayersBackend::LAYERS_WR) || > + (!aDeallocator->UsesImageBridge() && !aDeallocator->AsCompositorBridgeParentBase())) { VRManagerParent: UseImageBridge(): false AsCompositorBridgeParentBase(): nullptr VideoBridgeParent: UseImageBridge(): false AsCompositorBridgeParentBase(): nullptr CompositorBridgeParent: UseImageBridge(): false AsCompositorBridgeParentBase(): this ImageBridgeParent: UseImageBridge(): true AsCompositorBridgeParentBase(): nullptr
Attachment #8858724 -
Flags: review?(hshih) → review+
Assignee | ||
Comment 5•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=fe2358bea17d4bf1a9f37641570af5af65641b15
Pushed by sikeda@mozilla.com: https://hg.mozilla.org/projects/graphics/rev/f3878c1cd4d9 Avoid to allocate WebRenderTextureHost for TextureHost of VideoBridgeParent and VRManagerParent r=jerry
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Comment 7•7 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f3878c1cd4d943c3aef34056adf507e4908b3076
status-firefox55:
--- → fixed
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•