NPP_DrawImage NPAPI proposal.

Brett Wilson brettw at
Thu Apr 8 14:48:50 PDT 2010

On Thu, Apr 8, 2010 at 12:27 PM, Oleg Romashin <romaxa at> wrote:
> Hi,
> On
> I'm proposing new NPP_DrawImage  API,  which some sort of improved version
> for NPImageExpose
> Can we get it as part of official NPAPI ?
> Here is the bug with this API implementation, non-IPC + IPC parts:

Sorry, I'm pretty unclear on what this is for and what problem it is
trying to solve, especially since the description seems specific to X
windows. Can you further clarify this? Would it be useful to Windows?

The problem that I imagine and hope you're trying to solve is the
transparent windowless painting problem where the plugin requires the
background of the page to paint over. When you run plugins
out-of-process like Chrome and Mozilla, the background of the page has
to be sent to the plugin, the plugin draws on it, and then the whole
thing gets sent back.

If this is the problem you're trying to solve, why not create a new
mode where the plugin is required to emit an alpha channel in the
normal painting flow so the browser can composite the way it wants?
Why do we need these new functions and structures?


More information about the plugin-futures mailing list