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_GTK_WINDOW_SURFACE_X11_H
8 #define _MOZILLA_WIDGET_GTK_WINDOW_SURFACE_X11_H
12 # include "mozilla/widget/WindowSurface.h"
13 # include "mozilla/gfx/Types.h"
15 # include <X11/Xlib.h>
16 # include "X11UndefineNone.h"
18 namespace mozilla::widget
{
20 class WindowSurfaceX11
: public WindowSurface
{
22 WindowSurfaceX11(Display
* aDisplay
, Window aWindow
, Visual
* aVisual
,
26 static gfx::SurfaceFormat
GetVisualFormat(const Visual
* aVisual
,
29 Display
* const mDisplay
;
31 Visual
* const mVisual
;
32 const unsigned int mDepth
;
33 const gfx::SurfaceFormat mFormat
;
36 } // namespace mozilla::widget
39 #endif // _MOZILLA_WIDGET_GTK_WINDOW_SURFACE_X11_H