On Mon, Sep 1, 2014 at 3:07 AM, Gabriele Svelto <[email protected]> wrote:
> I've given some thought about relying on explicit commands from the
> system app but it sounds to me as that would be effectively moving the
> priority assignment logic out of gecko and into gaia. Would that be a
> good thing? I think that information such as audio playback and wakelock
> control and system messages is not available there so that would need to
> be handled in gecko anyway.

I don't mind at all having the system app handle more of these things.
Moving the logic from gecko to gaia means that we have more code which
is running in JS rather than C++ which generally is a good thing.
Additionally, gaia does have access to a lot more information about
various UI edge cases than Gecko does, which should mean less
guess-work and more accurate algorithms.

The system app does have access to wakelocks already. And there's
various audio policies that we'd like to implement which I think would
be easier to implement by giving the system app access to audio
information. So I suspect that we'll get that too no matter what.

Thinker is pointing out one important problem that we'd need to solve
though. At least for when we are receiving a phone call, it is
important that we are able to as quickly as possible launch the
process for the dialer app and give it a high CPU and LMK priority.
But that seems solvable even if most of the other processing is
happening through the system app.

/ Jonas
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to