mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 22:13:05 +00:00
Protect main thread in-process access to WinCompositorWidget transparent surface.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user