mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 799813 - Qt/Linux needs GetGLXPixmap() after bug 788042. r=karlt
This commit is contained in:
parent
97378d7c5c
commit
c0e9926e32
@ -23,7 +23,7 @@ using namespace mozilla;
|
||||
|
||||
gfxXlibSurface::gfxXlibSurface(Display *dpy, Drawable drawable, Visual *visual)
|
||||
: mPixmapTaken(false), mDisplay(dpy), mDrawable(drawable)
|
||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
||||
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||
, mGLXPixmap(None)
|
||||
#endif
|
||||
{
|
||||
@ -34,7 +34,7 @@ gfxXlibSurface::gfxXlibSurface(Display *dpy, Drawable drawable, Visual *visual)
|
||||
|
||||
gfxXlibSurface::gfxXlibSurface(Display *dpy, Drawable drawable, Visual *visual, const gfxIntSize& size)
|
||||
: mPixmapTaken(false), mDisplay(dpy), mDrawable(drawable), mSize(size)
|
||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
||||
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||
, mGLXPixmap(None)
|
||||
#endif
|
||||
{
|
||||
@ -49,7 +49,7 @@ gfxXlibSurface::gfxXlibSurface(Screen *screen, Drawable drawable, XRenderPictFor
|
||||
const gfxIntSize& size)
|
||||
: mPixmapTaken(false), mDisplay(DisplayOfScreen(screen)),
|
||||
mDrawable(drawable), mSize(size)
|
||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
||||
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||
, mGLXPixmap(None)
|
||||
#endif
|
||||
{
|
||||
@ -67,7 +67,7 @@ gfxXlibSurface::gfxXlibSurface(cairo_surface_t *csurf)
|
||||
: mPixmapTaken(false),
|
||||
mSize(cairo_xlib_surface_get_width(csurf),
|
||||
cairo_xlib_surface_get_height(csurf))
|
||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
||||
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||
, mGLXPixmap(None)
|
||||
#endif
|
||||
{
|
||||
@ -82,7 +82,7 @@ gfxXlibSurface::gfxXlibSurface(cairo_surface_t *csurf)
|
||||
|
||||
gfxXlibSurface::~gfxXlibSurface()
|
||||
{
|
||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
||||
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||
if (mGLXPixmap) {
|
||||
gl::sDefGLXLib.DestroyPixmap(mGLXPixmap);
|
||||
}
|
||||
@ -506,7 +506,7 @@ gfxXlibSurface::XRenderFormat()
|
||||
return cairo_xlib_surface_get_xrender_format(CairoSurface());
|
||||
}
|
||||
|
||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
||||
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||
GLXPixmap
|
||||
gfxXlibSurface::GetGLXPixmap()
|
||||
{
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <X11/extensions/Xrender.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
||||
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||
#include "GLXLibrary.h"
|
||||
#endif
|
||||
|
||||
@ -75,7 +75,7 @@ public:
|
||||
// server, not the main application.
|
||||
virtual gfxASurface::MemoryLocation GetMemoryLocation() const;
|
||||
|
||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
||||
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||
GLXPixmap GetGLXPixmap();
|
||||
#endif
|
||||
|
||||
@ -102,7 +102,7 @@ protected:
|
||||
|
||||
gfxIntSize mSize;
|
||||
|
||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
||||
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||
GLXPixmap mGLXPixmap;
|
||||
#endif
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user