Firefox OS/1UA Multi-Screen: Difference between revisions

→‎Gecko: Edit gecko design
(→‎Gecko: wip for gecko structure)
(→‎Gecko: Edit gecko design)
Line 32: Line 32:


=== Gecko ===
=== Gecko ===
Design structure of gecko's part.
DisplayDevice is the new introduced object, it simply represents information of a display, such as display's size, dpi, surface format, and more important, some native data such as FrameBufferSurface and ANativeWindow. The default built-in device could be a DisplayDevice with type of primary, and it would be the one and only primary DisplayDevice. Other connected/disconnected DisplayDevice can be added into/removed from our system through interfaces of AddDevice/RemoveDevice in GonkDisplay. Hardware Composer has defined displays connected via HDMI as "external", and displays which make composited output available within the system as "virtual", thus we share the same here.
(wip)
 
DisplayDevice is a new object we're going to introduced here, it simply represents the information required for a display.
Although it might be possible to connect multiple displays of the same type in the same time, we have limited the mapping of display type and display device to one to one at this point, any second DisplayDevice with type that already exist in the list asking for connection would result in an error. We'd like to keep the design simple at the early stage and it doesn't sound like a difficult extension anyway. As you can see from the graph above, GonkDisplay manages a list of DisplayDevices.


=== Gaia ===
=== Gaia ===
Confirmed users
220

edits