1,295
edits
Line 92: | Line 92: | ||
SetCurrent can take NULL as the surface. This removes the previous current surface. The plugin will render nothing. This should be used before finalizing the last surface. | SetCurrent can take NULL as the surface. This removes the previous current surface. The plugin will render nothing. This should be used before finalizing the last surface. | ||
The Init and Finalize functions must be called from the main plugin thread. The SetCurrent function may be called from any thread. Reentrant calls into the plugin do not occur during a SetCurrent invocation. | The Init and Finalize functions must be called from the main plugin thread. The SetCurrent function may be called from any thread. Reentrant calls from the browser into the plugin do not occur during a SetCurrent invocation from the main thread. The browser is expected to implement SetCurrent using a locking protocol that cannot block for long. For example, SetCurrent might block only while the previous surface is being read by the browser's compositing. | ||
= Throttling Painting = | = Throttling Painting = |
edits