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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user