Bug 944300 - Disable browser_tabview_privatebrowsing_perwindowpb.js on Linux for...
[gecko.git] / widget / qt / mozqglwidgetwrapper.h
blobf6f96875cada7fb0be3a4ed207be87cb9635454b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* vim: set ts=4 et sw=4 tw=80: */
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 MOZQGLWIDGETWRAPPER_H
8 #define MOZQGLWIDGETWRAPPER_H
11 * qgl.h and GLDefs.h has conflicts in type defines
12 * QGLWidget wrapper class helps to avoid including qgl.h with mozilla gl includes
15 class QGLWidget;
16 class QGraphicsView;
17 class MozQGLWidgetWrapper
19 public:
20 MozQGLWidgetWrapper();
21 ~MozQGLWidgetWrapper();
22 void makeCurrent();
23 void setViewport(QGraphicsView*);
24 static bool hasGLContext(QGraphicsView*);
25 static bool isRGBAContext();
26 private:
27 QGLWidget* mWidget;
30 #endif