Bug 831768 part 2 - Also defer painting from RecvUpdateBackground just as we did with RecvAsyncSetWindow, r=gfritzsche

--HG--
extra : rebase_source : c5b2001b1c32b1be7d5718bb72ae956706d572a4
This commit is contained in:
Benjamin Smedberg 2013-03-29 11:53:59 -04:00
parent a980cc9a32
commit 5a8e2abd62

View File

@ -3833,13 +3833,9 @@ PluginInstanceChild::RecvUpdateBackground(const SurfaceDescriptor& aBackground,
// XXX refactor me
mAccumulatedInvalidRect.UnionRect(aRect, mAccumulatedInvalidRect);
// The browser is limping along with a stale copy of our pixels.
// Try to repaint ASAP. This will ClearCurrentBackground() if we
// needed it.
if (!ShowPluginFrame()) {
NS_WARNING("Couldn't immediately repaint plugin instance");
// This must be asynchronous, because we may be nested within RPC messages
// which do not expect to receiving paint events.
AsyncShowPluginFrame();
}
return true;
}