Confirmed users
138
edits
Stuartmorgan (talk | contribs) |
|||
Line 85: | Line 85: | ||
<pre> | <pre> | ||
void NPN_SetCurrentAsyncSurface(NPP instance, NPAsyncSurface* surface); | void NPN_SetCurrentAsyncSurface(NPP instance, NPAsyncSurface* surface, NPRect *changed); | ||
</pre> | </pre> | ||
Surfaces cannot be modified while they are current. | Surfaces cannot be modified while they are current. A modified rectangle may be provided in the <code>changed</code> argument to give the host a hint on which part of the surface was modified with respect to the previous current surface so that the browser can choose to optimize the composition process. There is no guarantee only this rectangle will be recomposed though and the entire surface needs to be valid. | ||
The Init and Finalize functions must be called from the main plugin thread. The SetCurrent function may be called on another thread depending on the drawing model. | The Init and Finalize functions must be called from the main plugin thread. The SetCurrent function may be called on another thread depending on the drawing model. |