Interface ICanvasConfig
interface ICanvasConfig
Extends com.amazon.apmf.IStandard
For memory, power and performance reasons, display subsystem may enforce windows and surfaces
to be created at certain resolution which might be different than native display resolution.
Even though the current IDisplayConfig suggests that the resolution is WxH, system may create
a full screen window as wxh where “w != W” and “h != H”.
We capture this system defined & enforced logical resolution in canvas config. The display
subsystem supports scaling of composition results during presentation. Scaling accommodates
devices for which the physical resolution of the display differs from the canvas resolution
(e.g. a device presenting a 1080p UI to a 4k display).
Methods
getWidthInLogicalPixels()
i32 getWidthInLogicalPixels()
Width in density independent pixels
Returns
i32
width of canvas
getHeightInLogicalPixels()
i32 getHeightInLogicalPixels()
Height in density independent pixels
Returns
i32
height of canvas

