зеркало из https://github.com/mozilla/gecko-dev.git
Bug 799813 - Qt/Linux needs GetGLXPixmap() after bug 788042. r=karlt
This commit is contained in:
Родитель
0473e91d29
Коммит
2686e62e1b
|
@ -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
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче