Closed
Bug 957984
Opened 12 years ago
Closed 8 years ago
[B2G][IPC] Create ImageBridgeChild on demand
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: alin, Unassigned, Mentored)
References
Details
(Whiteboard: [good first bug][TPE_GFX])
Attachments
(1 file)
|
4.74 KB,
patch
|
Details | Diff | Splinter Review |
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
Comment 1•12 years ago
|
||
The camera uses GonkNativeWindowICS, which uses the ImageBridgeChild:
http://dxr.mozilla.org/mozilla-central/source/widget/gonk/nativewindow/GonkNativeWindowICS.cpp?from=GonkNativeWindowICS.cpp#98
Comment 2•12 years ago
|
||
(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.
| Reporter | ||
Comment 3•12 years ago
|
||
Hi Mike,
sorry for the misleading description from begging.
As peter said from comment2, we are intended to do this.
Comment 4•12 years ago
|
||
I am thinking to use ImageBridge for Bug 988956.
Comment 5•12 years ago
|
||
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.
| Assignee | ||
Updated•12 years ago
|
Mentor: pchang
Whiteboard: [good first bug][mentor=pchang@mozilla.com][TPE_GFX] → [good first bug][TPE_GFX]
Updated•11 years ago
|
Assignee: pchang → nobody
Comment 7•11 years ago
|
||
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)
Comment 8•11 years ago
|
||
When Bug 709490 is fixed. WebGL worker also going to use ImageBridge.
See Also: → 709490
Comment 9•8 years ago
|
||
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.
Description
•