Bug 1869647 - Mark hasStorageAccess.sub.https.window.html as intermittent after wpt...
[gecko.git] / widget / gtk / WindowSurfaceX11SHM.h
blob5d12137f7beaa86154a68f616e9af4c59e6177c3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef _MOZILLA_WIDGET_WINDOW_SURFACE_X11_SHM_H
8 #define _MOZILLA_WIDGET_WINDOW_SURFACE_X11_SHM_H
10 #ifdef MOZ_X11
12 # include "mozilla/widget/WindowSurface.h"
13 # include "nsShmImage.h"
15 namespace mozilla {
16 namespace widget {
18 class WindowSurfaceX11SHM : public WindowSurface {
19 public:
20 WindowSurfaceX11SHM(Display* aDisplay, Drawable aWindow, Visual* aVisual,
21 unsigned int aDepth);
23 already_AddRefed<gfx::DrawTarget> Lock(
24 const LayoutDeviceIntRegion& aRegion) override;
25 void Commit(const LayoutDeviceIntRegion& aInvalidRegion) override;
27 private:
28 RefPtr<nsShmImage> mFrontImage;
29 RefPtr<nsShmImage> mBackImage;
32 } // namespace widget
33 } // namespace mozilla
35 #endif // MOZ_X11
36 #endif // _MOZILLA_WIDGET_WINDOW_SURFACE_X11_SHM_H