官术网_书友最值得收藏!

The working of components under Firefox OS's hood – an example

Let's take the example of the camera application of Firefox OS. Let's think of a high-level view of what happens when we take a picture in Firefox OS's ecosystem. We open the Camera application, which is a part of Gaia. Gaia makes use of the Camera API, which is implemented in Gecko to run the application, as Gecko is the rendering engine for the operating system. Gecko then passes the requests to Gonk, which interfaces with the hardware. Gonk sends a low-level request to the chip that activates the camera and actually takes a picture.

Note

Note that the flow of control here goes from the highest layer in the abstraction layer to the lowest layer of the OS, and then finally to the mobile hardware.

All these types of access to the hardware are provided to the developer via the WebAPIs, so you don't actually have to think of or concern yourself with what lies under the hood. It feels great to drive a car, but having abstract knowledge of what actually lies under the hood can always prove to be useful.

The working of components under Firefox OS's hood – an example

In the preceding illustration, the purple line from Command to Action denotes the flow of control from the highest to the lowest abstraction level, and finally to the hardware.

主站蜘蛛池模板: 靖远县| 商城县| 扎赉特旗| 清新县| 西乌珠穆沁旗| 凭祥市| 理塘县| 丰顺县| 仲巴县| 来安县| 文化| 通山县| 黄石市| 全椒县| 阿拉善盟| 团风县| 尖扎县| 虞城县| 罗山县| 新丰县| 上杭县| 九台市| 桑日县| 苏尼特左旗| 三台县| 香河县| 秦皇岛市| 乳山市| 云霄县| 广德县| 临颍县| 阳山县| 察哈| 石景山区| 大名县| 翁牛特旗| 子长县| 工布江达县| 丽江市| 且末县| 静宁县|