mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
a980cc9a32
commit
5a8e2abd62
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user