NPAPI:Pepper: Difference between revisions

453 bytes removed ,  25 January 2010
Remove incorrect update rect stuff
(2D device example)
(Remove incorrect update rect stuff)
Line 281: Line 281:
} NPWindow;
} NPWindow;
</pre>
</pre>
=== Optimizations for 2D Rendering ===
In order to avoid drawing an entire region on the screen when only a small portion is updated, it may be useful for the plugin to use existing APIs to mark only a small region as needing to be updated by the next FlushRenderContext.
<pre>
  void NPN_InvalidateRect(NPP instance, NPRect* invalidRect)
</pre>
* The plugin informs the renderer that it would like to replace the contents of the specified rectangle.


== Event Handling ==
== Event Handling ==
202

edits