Bug 1658004 [wpt PR 24923] - [EventTiming] Improve some of the flaky tests, a=testonly
[gecko.git] / widget / gtk / WindowSurfaceX11.h
blobd297ec6b660a207ee896f8811f3151bf97042b53
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
10 #ifdef MOZ_X11
12 # include "mozilla/widget/WindowSurface.h"
13 # include "mozilla/gfx/Types.h"
15 # include <X11/Xlib.h>
17 namespace mozilla {
18 namespace widget {
20 class WindowSurfaceX11 : public WindowSurface {
21 public:
22 WindowSurfaceX11(Display* aDisplay, Window aWindow, Visual* aVisual,
23 unsigned int aDepth);
25 protected:
26 static gfx::SurfaceFormat GetVisualFormat(const Visual* aVisual,
27 unsigned int aDepth);
29 Display* const mDisplay;
30 const Window mWindow;
31 Visual* const mVisual;
32 const unsigned int mDepth;
33 const gfx::SurfaceFormat mFormat;
36 } // namespace widget
37 } // namespace mozilla
39 #endif // MOZ_X11
40 #endif // _MOZILLA_WIDGET_GTK_WINDOW_SURFACE_X11_H