Skip to content

Commit

Permalink
Bug 1769439 - Call CanvasRenderer::SetDirty() when mNotLost->mCanvasR…
Browse files Browse the repository at this point in the history
…enderer is re-used r=gfx-reviewers,lsalzman

CanvasRenderer::SetDirty() needs to be called when mNotLost->mCanvasRenderer is re-used.

Differential Revision: https://phabricator.services.mozilla.com/D146406
  • Loading branch information
sotaro committed May 16, 2022
1 parent 6db32ff commit b40db53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dom/canvas/ClientWebGLContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,9 @@ bool ClientWebGLContext::UpdateWebRenderCanvasData(
return true;
}

if (!IsContextLost() && !renderer &&
if (!IsContextLost() && !renderer && mNotLost->mCanvasRenderer &&
aCanvasData->SetCanvasRenderer(mNotLost->mCanvasRenderer)) {
mNotLost->mCanvasRenderer->SetDirty();
mResetLayer = false;
return true;
}
Expand Down

0 comments on commit b40db53

Please sign in to comment.