Closed
Bug 934106
Opened 11 years ago
Closed 11 years ago
Reduce ImageClient holding video frame number to one
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
People
(Reporter: sotaro, Assigned: sotaro)
References
Details
Attachments
(1 file, 1 obsolete file)
1.23 KB,
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #933376 +++ In v1.1, Compositor(b2g process) side hold one video frame. But since v1.2, Compositor side hold 2 video frames. There seems no necessity to hold 2 video frames on Compositor side. Increase the number of buffers held by Compositor side is same to decrease the number of buffers used by hw codec/camera hw side.
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Updated•11 years ago
|
blocking-b2g: --- → koi?
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 826301 [details] [diff] [review] patch - Reduce ImageClient holding video frame number to one nical, how do you think about the change?
Attachment #826301 -
Flags: feedback?(nical.bugzilla)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → sotaro.ikeda.g
Comment 3•11 years ago
|
||
Comment on attachment 826301 [details] [diff] [review] patch - Reduce ImageClient holding video frame number to one Review of attachment 826301 [details] [diff] [review]: ----------------------------------------------------------------- Double buffered ImageClient was around mostly because of a quirk of the deprecated textures, now it should work with single buffering.
Attachment #826301 -
Flags: feedback?(nical.bugzilla) → feedback+
Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 826301 [details] [diff] [review] patch - Reduce ImageClient holding video frame number to one Proceed to review.
Attachment #826301 -
Flags: review?(nical.bugzilla)
Comment 5•11 years ago
|
||
Sotaro, is this a must for 1.2? What are the benefits? I recall us running into a few problems switching from and to single/double buffering, I'd rather avoid it here.
Flags: needinfo?(sotaro.ikeda.g)
Assignee | ||
Comment 6•11 years ago
|
||
hw codec's video handling is very very tight. Buffer shortage could cause the problem like Bug 863441. And this bug might be causing the Bug 933376. But it is not clear yet.
Flags: needinfo?(sotaro.ikeda.g)
Comment 7•11 years ago
|
||
Comment on attachment 826301 [details] [diff] [review] patch - Reduce ImageClient holding video frame number to one Review of attachment 826301 [details] [diff] [review]: ----------------------------------------------------------------- R+, but carefully test that this does not break anything, including on OSX. At least a full green try run would make me feel comfortable. Switching to single buffering would make us use less memory (the equivalent of one frame) during video playback, which is really nice on B2G. We needed double buffering because of how deprecated textures worked, and one of the breakage I caused related to buffering was to switch to single buffering before switching to the new textures. Not sure if I tried again later and failed for some other reason after we enabled new textures.
Attachment #826301 -
Flags: review?(nical.bugzilla) → review+
Comment 8•11 years ago
|
||
"In v1.1, Compositor(b2g process) side hold one video frame. But since v1.2, Compositor side hold 2 video frames. There seems no necessity to hold 2 video frames on Compositor side." Several bugs are on file with playback problems we didn't have in 1.1. Sounds like a pretty clear regression from 1.1 to me.
Comment 9•11 years ago
|
||
It was a design decision, using double buffering, instead of single buffering. We should treat this change as a one to design, and make sure we understand all the implications.
Comment 10•11 years ago
|
||
Ok design regression in that case :)
Assignee | ||
Comment 11•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=579dcb17c079
Assignee | ||
Comment 12•11 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #11) > https://tbpl.mozilla.org/?tree=Try&rev=579dcb17c079 tryserver result is good.
Updated•11 years ago
|
blocking-b2g: koi? → koi+
Assignee | ||
Comment 13•11 years ago
|
||
Comittable patch. Single buffer is used only when new texture is enabled. Carry 'r=nical+'.
Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 827562 [details] [diff] [review] patch v2 - Reduce ImageClient holding video frame number to one Carry 'r+=nical'.
Attachment #827562 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Attachment #826301 -
Attachment is obsolete: true
Assignee | ||
Comment 15•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=86f2e2cb810b Just reconfirm the result.
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 17•11 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/0a1c235131ca
Keywords: checkin-needed
Comment 18•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g26_v1_2/rev/e4d673ad84b0
status-b2g-v1.2:
--- → fixed
status-firefox26:
--- → wontfix
status-firefox27:
--- → wontfix
status-firefox28:
--- → fixed
https://hg.mozilla.org/mozilla-central/rev/0a1c235131ca
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in
before you can comment on or make changes to this bug.
Description
•