summaryrefslogtreecommitdiffstats
path: root/widget/windows/WinCompositorWidget.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-11 11:55:16 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-11 11:55:16 +0200
commit6ded94d38cf94a5da8d6a73dfbfca2acb0d719cc (patch)
treef78a8681518066053e5c301fcf0696ea161e5bf0 /widget/windows/WinCompositorWidget.h
parent1de1ce5770f45c0b8601a8148d622b272b4ccdbb (diff)
downloadUXP-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.h4
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;