Closed Bug 957984 Opened 12 years ago Closed 8 years ago

[B2G][IPC] Create ImageBridgeChild on demand

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: alin, Unassigned, Mentored)

References

Details

(Whiteboard: [good first bug][TPE_GFX])

Attachments

(1 file)

The ImageBridgeChild was always created at initialization time of main thread. But It is not necessary sometimes for video or camera case, which resulted in resource wasted. The ImageBridgeChild was created on demand when a app really needs it.
Summary: [B2G][IPC] ImageBridgeChild created on demand → [B2G][IPC] Create ImageBridgeChild on demand
(In reply to Abel Lin(alin, abel) from comment #0) > The ImageBridgeChild was always created at initialization time of main > thread. > But It is not necessary sometimes for video or camera case, which resulted > in resource wasted. The ImageBridgeChild was created on demand when a app > really needs it. Correct: ImageBridge is necessary for video and camera cases. Therefore, we could defer the ImageBridgeChild creation for other uses cases, like homescreen, phone app etc... By the way, please also check the creation of ImageBridgeParents after on demand creation is ready.
Hi Mike, sorry for the misleading description from begging. As peter said from comment2, we are intended to do this.
Assignee: alin → pchang
I am thinking to use ImageBridge for Bug 988956.
Attached patch v1 — — Splinter Review
Attached the v1 patch. Added some static resources for IPC to handle the deferred ImageBridgeChild creation. Work on next patch to free these static resources or avoid the creation of these static resources.
Mentor: pchang
Whiteboard: [good first bug][mentor=pchang@mozilla.com][TPE_GFX] → [good first bug][TPE_GFX]
Ethan, please help to study this case.
Flags: needinfo?(etlin)
Assignee: pchang → nobody
After Bug 1000525, class ImageBridge is not only used for camera/video. So we can't create it on demand unless we separate the extra IPC messages in ImageBridge. So I created Bug 1108924 to do the separation.
Flags: needinfo?(etlin)
When Bug 709490 is fixed. WebGL worker also going to use ImageBridge.
See Also: → 709490
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: