NPAPI:AsyncDrawing: Difference between revisions

Line 94: Line 94:
= NPDrawingModelAsyncBitmapSurface =
= NPDrawingModelAsyncBitmapSurface =


This model should be available on all platforms. It will only allow calls to SetCurrent on the main plugin thread.
This model should be available on all platforms. It allows calls to SetCurrent on any thread.


Plugins should create a bitmap surface by calling <code>NPN_InitAsyncSurface</code> with a <code>NULL</code> value for <code>initData</code>. If an <code>NPImageFormat</code> is not supported then surface creation will fail.
Plugins should create a bitmap surface by calling <code>NPN_InitAsyncSurface</code> with a <code>NULL</code> value for <code>initData</code>. If an <code>NPImageFormat</code> is not supported then surface creation will fail.
Confirmed users
138

edits