Closed Bug 905304 Opened 11 years ago Closed 11 years ago

Add calling compositionComplete() on master gonk

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sotaro, Assigned: sotaro)

Details

Attachments

(1 file, 2 obsolete files)

+++ This bug was initially created as a clone of Bug #898919 +++ Bug 898919 fix only b2g v1.1. Since gfx layer refactoring, layer's code is very different ,then handle the problem as a different bug. Master also need to think about support of JB gonk.
Summary: Apply Bug 898919 to master → Add calling compositionComplete() on master gonk
(In reply to Sotaro Ikeda [:sotaro] from comment #0) > +++ This bug was initially created as a clone of Bug #898919 +++ > > Bug 898919 fix only b2g v1.1. Since gfx layer refactoring, layer's code is > very different ,then handle the problem as a different bug. Master also need > to think about support of JB gonk. This should be koi then, not leo, right?
blocking-b2g: leo+ → koi?
(In reply to Jason Smith [:jsmith] from comment #1) > > This should be koi then, not leo, right? Yes, to be koi.
Assignee: nobody → sotaro.ikeda.g
Attached patch patch - Call compositionComplete() (obsolete) (deleted) — Splinter Review
In ICS, compositionComplete() is called like the following. LayerManagerComposite::Render() ->CompositorOGL::EndFrame() ->GLContextEGL::SwapBuffers() ->GonkDisplayICS::SwapBuffers() ->FramebufferNativeWindow::compositionComplete()
Comment on attachment 791417 [details] [diff] [review] patch - Call compositionComplete() Can I have a feedback to the patch?
Attachment #791417 - Flags: feedback?(jmuizelaar)
Attachment #791417 - Flags: feedback?(bgirard)
Comment on attachment 791417 [details] [diff] [review] patch - Call compositionComplete() Review of attachment 791417 [details] [diff] [review]: ----------------------------------------------------------------- ::: widget/gonk/libdisplay/GonkDisplayJB.cpp @@ +166,5 @@ > StopBootAnimation(); > mBootAnimBuffer = nullptr; > > + // Should be called when composition rendering is complete for a frame. > + // Only HWC v1.0 needs this call. I think this should say what happens for HWC > 1.0. Is it harmless to call it or does it have to be removed?
Attachment #791417 - Flags: feedback?(bgirard) → feedback+
(In reply to Benoit Girard (:BenWa) from comment #6) > Comment on attachment 791417 [details] [diff] [review] > patch - Call compositionComplete() > > Review of attachment 791417 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: widget/gonk/libdisplay/GonkDisplayJB.cpp > @@ +166,5 @@ > > StopBootAnimation(); > > mBootAnimBuffer = nullptr; > > > > + // Should be called when composition rendering is complete for a frame. > > + // Only HWC v1.0 needs this call. > > I think this should say what happens for HWC > 1.0. Is it harmless to call > it or does it have to be removed? I will update in next patch. (HWC > 1.0) case is already handled in current code. mFBDevice is present only when (HWC == 1.0). http://mxr.mozilla.org/mozilla-central/source/widget/gonk/libdisplay/GonkDisplayJB.cpp#66
In (HWC > 1.0) case, do not compositionComplete().
Attachment #791417 - Flags: feedback?(jmuizelaar) → feedback+
Attached patch patch v2 - Call compositionComplete() (obsolete) (deleted) — Splinter Review
Apply the comment.
Attachment #791417 - Attachment is obsolete: true
Comment on attachment 791449 [details] [diff] [review] patch v2 - Call compositionComplete() mwu, can you review the patch?
Attachment #791449 - Flags: review?(mwu)
Attachment #791449 - Flags: review?(mwu) → review+
Add header to the patch. Carry "mwu: review+".
Attachment #791449 - Attachment is obsolete: true
Attachment #791577 - Flags: review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
blocking-b2g: koi? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: