Plugins:NokiaMaemoImageSurface: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
We are proposing a NPAPI extension which would allow a plugin to
= Status =
render directly into 32-bit buffer in shared memory. The new extension
will be designed so that plugin explicitly makes requests of the user
agent whether the extension is supported (with NPN_GetValue and
NPNVSupportsWindowlessLocal) and then enables the new rendering mode
at runtime (with NPN_SetValue and NPPVpluginWindowlessLocalBool).  In
this way other plugins unaware of new extension will not be disrupted.


When new rendering mode is enabled the Xdrawable field of a standard
Accepted, ready for implementation. No NPAPI version number.
XGraphicsExpose event holds a pointer to the new NPImageExpose
 
structure which among other things contains pointer to the shared
= Problem Summary =
memory buffer, its dimensions, translation and scale factors.
 
We are proposing a NPAPI extension which would allow a plugin to render directly into 32-bit buffer in shared memory for performance reasons.
 
= Specification =
 
The plugin explicitly makes requests of the user agent whether the extension is supported (with NPN_GetValue and NPNVSupportsWindowlessLocal) and then enables the new rendering mode at runtime (with NPN_SetValue and NPPVpluginWindowlessLocalBool).  In this way other plugins unaware of new extension will not be disrupted.
 
When new rendering mode is enabled the Xdrawable field of a standard XGraphicsExpose event holds a pointer to the new NPImageExpose structure which among other things contains pointer to the shared memory buffer, its dimensions, translation and scale factors.
<pre>
<pre>


Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits