зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1b69f6f153
Коммит
2b9e63f722
|
@ -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");
|
||||
AsyncShowPluginFrame();
|
||||
}
|
||||
// This must be asynchronous, because we may be nested within RPC messages
|
||||
// which do not expect to receiving paint events.
|
||||
AsyncShowPluginFrame();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче