1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
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
12 #include "mozilla/widget/WindowSurface.h"
13 #include "nsShmImage.h"
18 class WindowSurfaceX11SHM
: public WindowSurface
{
20 WindowSurfaceX11SHM(Display
* aDisplay
, Drawable aWindow
, Visual
* aVisual
,
23 already_AddRefed
<gfx::DrawTarget
> Lock(const LayoutDeviceIntRegion
& aRegion
) override
;
24 void Commit(const LayoutDeviceIntRegion
& aInvalidRegion
) override
;
27 RefPtr
<nsShmImage
> mFrontImage
;
28 RefPtr
<nsShmImage
> mBackImage
;
32 } // namespace mozilla
35 #endif // _MOZILLA_WIDGET_WINDOW_SURFACE_X11_SHM_H