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
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(
24 const LayoutDeviceIntRegion
& aRegion
) override
;
25 void Commit(const LayoutDeviceIntRegion
& aInvalidRegion
) override
;
28 RefPtr
<nsShmImage
> mFrontImage
;
29 RefPtr
<nsShmImage
> mBackImage
;
33 } // namespace mozilla
36 #endif // _MOZILLA_WIDGET_WINDOW_SURFACE_X11_SHM_H