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:
David Parks 2017-01-10 17:47:25 -08:00
parent bf60b78bbe
commit a37ce18488

View File

@ -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;
}