主权项 |
1. A method in a device, the method comprising:
exposing, by a host program running on the device, a first application programming interface (API) to facilitate a control program, running on the device, displaying content in a window in which the host program displays content; exposing, as part of the first API, a first method that the control program can invoke to pass to the host program a definition of a surface presenter to be created by the host program, the surface presenter including one or more buffers in which the control program can store content to be displayed; exposing, as part of the first API, a second method that the control program can invoke to determine whether the host program is using hardware acceleration for displaying the content; combining, by the host program, the content in the one or more buffers stored by the control program and other content from the host program; and displaying, by the host program, the combined content. |