mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 1306698 - Make sure that async changes to the plugin render mode do not cause AsyncShowPluginFrame to run when doing direct drawing. r=dvander
This commit is contained in:
parent
bf60b78bbe
commit
a37ce18488
@ -4078,6 +4078,13 @@ PluginInstanceChild::InvalidateRectDelayed(void)
|
||||
}
|
||||
|
||||
mCurrentInvalidateTask = nullptr;
|
||||
|
||||
// When this method is run asynchronously, we can end up switching to
|
||||
// direct drawing before while we wait to run. In that case, bail.
|
||||
if (IsUsingDirectDrawing()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mAccumulatedInvalidRect.IsEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user