Bug 606285 and Bug 583109 - Send the "visible" notification when painting with async layers, so that when a plugin goes from invisible to visible it starts sending asynchronous paints. Suspend sending surface updates for asynchronous plugins when they are invisible, and set the empty clipRect so that the plugin knows that drawing is suspended per the new API. Assume that plugins are visible again when a Paint or BuildLayer call is received. r-pending=karlt

This commit is contained in:
Benjamin Smedberg
2010-11-05 10:40:55 -04:00
parent 192126b4f8
commit bd8a0ccb08
12 changed files with 46 additions and 95 deletions

View File

@@ -623,16 +623,6 @@ PluginModuleParent::AsyncSetWindow(NPP instance, NPWindow* window)
return i->AsyncSetWindow(window);
}
nsresult
PluginModuleParent::NotifyPainted(NPP instance)
{
PluginInstanceParent* i = InstCast(instance);
if (!i)
return NS_ERROR_FAILURE;
return i->NotifyPainted();
}
nsresult
PluginModuleParent::GetSurface(NPP instance, gfxASurface** aSurface)
{