diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-09-11 11:55:16 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-09-11 11:55:16 +0200 |
commit | 6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc (patch) | |
tree | f78a8681518066053e5c301fcf0696ea161e5bf0 /widget/windows/WinCompositorWidget.h | |
parent | 1de1ce5770f45c0b8601a8148d622b272b4ccdbb (diff) | |
download | UXP-6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc.tar UXP-6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc.tar.gz UXP-6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc.tar.lz UXP-6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc.tar.xz UXP-6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc.zip |
Bug 1467363 - Protect access to mTransparentSurface with a lock.
Diffstat (limited to 'widget/windows/WinCompositorWidget.h')
-rw-r--r-- | widget/windows/WinCompositorWidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widget/windows/WinCompositorWidget.h b/widget/windows/WinCompositorWidget.h index 9661cab45..1689a8641 100644 --- a/widget/windows/WinCompositorWidget.h +++ b/widget/windows/WinCompositorWidget.h @@ -10,6 +10,7 @@ #include "gfxASurface.h" #include "mozilla/gfx/CriticalSection.h" #include "mozilla/gfx/Point.h" +#include "mozilla/Mutex.h" #include "nsIWidget.h" class nsWindow; @@ -83,6 +84,8 @@ public: return mWnd; } + mozilla::Mutex& GetTransparentSurfaceLock() { return mTransparentSurfaceLock; } + private: HDC GetWindowSurface(); void FreeWindowSurface(HDC dc); @@ -95,6 +98,7 @@ private: gfx::CriticalSection mPresentLock; // Transparency handling. + mozilla::Mutex mTransparentSurfaceLock; nsTransparencyMode mTransparencyMode; RefPtr<gfxASurface> mTransparentSurface; HDC mMemoryDC; |