mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-20 11:23:07 +09:00
Protect main thread in-process access to WinCompositorWidget transparent surface.
This commit is contained in:
parent
acb2819baa
commit
416ce4eb69
2 changed files with 29 additions and 0 deletions
|
|
@ -23,6 +23,31 @@ InProcessWinCompositorWidget::InProcessWinCompositorWidget(const CompositorWidge
|
|||
MOZ_ASSERT(mWindow);
|
||||
}
|
||||
|
||||
void
|
||||
InProcessWinCompositorWidget::OnDestroyWindow()
|
||||
{
|
||||
EnterPresentLock();
|
||||
WinCompositorWidget::OnDestroyWindow();
|
||||
LeavePresentLock();
|
||||
}
|
||||
|
||||
void
|
||||
InProcessWinCompositorWidget::UpdateTransparency(nsTransparencyMode aMode)
|
||||
{
|
||||
EnterPresentLock();
|
||||
WinCompositorWidget::UpdateTransparency(aMode);
|
||||
LeavePresentLock();
|
||||
}
|
||||
|
||||
void
|
||||
InProcessWinCompositorWidget::ClearTransparentWindow()
|
||||
{
|
||||
EnterPresentLock();
|
||||
WinCompositorWidget::ClearTransparentWindow();
|
||||
LeavePresentLock();
|
||||
}
|
||||
|
||||
|
||||
nsIWidget*
|
||||
InProcessWinCompositorWidget::RealWidget()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue