Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
| Line 51: | Line 51: | ||
NPSize size; | NPSize size; | ||
NPImageFormat format; | NPImageFormat format; | ||
uint32_t | union { | ||
struct { unsigned char *data; uint32_t stride; }; | |||
#ifdef XP_WIN | |||
HANDLE sharedHandle | |||
#endif | |||
}; | |||
} NPAsyncSurface; | } NPAsyncSurface; | ||
</pre> | </pre> | ||
| Line 59: | Line 63: | ||
<pre> | <pre> | ||
NPError NPN_InitAsyncSurface(NPP instance, | NPError NPN_InitAsyncSurface(NPP instance, NPSize* size, | ||
int32_t format, void* initData, | |||
NPSurface* surface); | |||
</pre> | </pre> | ||
When a plugin is done with a surface the surface should be finalized with <code>NPN_FinalizeAsyncSurface</code>: | When a plugin is done with a surface the surface should be finalized with <code>NPN_FinalizeAsyncSurface</code>: | ||