Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
No edit summary |
|||
Line 81: | Line 81: | ||
This model should be available on all platforms. | This model should be available on all platforms. | ||
Plugins should create a bitmap surface by calling <code>NPN_InitAsyncSurface</code> with a <code>NULL</code> value for the <code>data</code> member of <code>NPAsyncSurface</code>. On successful return the <code>data</code> member will point to the bitmap memory. The <code>stride</code> member, set by the browser, will reflect the stride of the returned image surface. If an <code>NPImageFormat</code> is not supported then surface creation will fail. | |||
Plugins should destroy bitmap surfaces by calling <code>NPN_FinalizeAsyncSurface</code>. This will allow the browser to release the bitmap memory. | |||
= NPDrawingModelAsyncWindowsSharedSurface = | = NPDrawingModelAsyncWindowsSharedSurface = |