зеркало из 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)
|
gfxXlibSurface::gfxXlibSurface(Display *dpy, Drawable drawable, Visual *visual)
|
||||||
: mPixmapTaken(false), mDisplay(dpy), mDrawable(drawable)
|
: mPixmapTaken(false), mDisplay(dpy), mDrawable(drawable)
|
||||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||||
, mGLXPixmap(None)
|
, mGLXPixmap(None)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,7 @@ gfxXlibSurface::gfxXlibSurface(Display *dpy, Drawable drawable, Visual *visual)
|
||||||
|
|
||||||
gfxXlibSurface::gfxXlibSurface(Display *dpy, Drawable drawable, Visual *visual, const gfxIntSize& size)
|
gfxXlibSurface::gfxXlibSurface(Display *dpy, Drawable drawable, Visual *visual, const gfxIntSize& size)
|
||||||
: mPixmapTaken(false), mDisplay(dpy), mDrawable(drawable), mSize(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)
|
, mGLXPixmap(None)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
@ -49,7 +49,7 @@ gfxXlibSurface::gfxXlibSurface(Screen *screen, Drawable drawable, XRenderPictFor
|
||||||
const gfxIntSize& size)
|
const gfxIntSize& size)
|
||||||
: mPixmapTaken(false), mDisplay(DisplayOfScreen(screen)),
|
: mPixmapTaken(false), mDisplay(DisplayOfScreen(screen)),
|
||||||
mDrawable(drawable), mSize(size)
|
mDrawable(drawable), mSize(size)
|
||||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||||
, mGLXPixmap(None)
|
, mGLXPixmap(None)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
@ -67,7 +67,7 @@ gfxXlibSurface::gfxXlibSurface(cairo_surface_t *csurf)
|
||||||
: mPixmapTaken(false),
|
: mPixmapTaken(false),
|
||||||
mSize(cairo_xlib_surface_get_width(csurf),
|
mSize(cairo_xlib_surface_get_width(csurf),
|
||||||
cairo_xlib_surface_get_height(csurf))
|
cairo_xlib_surface_get_height(csurf))
|
||||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||||
, mGLXPixmap(None)
|
, mGLXPixmap(None)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
@ -82,7 +82,7 @@ gfxXlibSurface::gfxXlibSurface(cairo_surface_t *csurf)
|
||||||
|
|
||||||
gfxXlibSurface::~gfxXlibSurface()
|
gfxXlibSurface::~gfxXlibSurface()
|
||||||
{
|
{
|
||||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||||
if (mGLXPixmap) {
|
if (mGLXPixmap) {
|
||||||
gl::sDefGLXLib.DestroyPixmap(mGLXPixmap);
|
gl::sDefGLXLib.DestroyPixmap(mGLXPixmap);
|
||||||
}
|
}
|
||||||
|
@ -506,7 +506,7 @@ gfxXlibSurface::XRenderFormat()
|
||||||
return cairo_xlib_surface_get_xrender_format(CairoSurface());
|
return cairo_xlib_surface_get_xrender_format(CairoSurface());
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||||
GLXPixmap
|
GLXPixmap
|
||||||
gfxXlibSurface::GetGLXPixmap()
|
gfxXlibSurface::GetGLXPixmap()
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#include <X11/extensions/Xrender.h>
|
#include <X11/extensions/Xrender.h>
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
|
||||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||||
#include "GLXLibrary.h"
|
#include "GLXLibrary.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ public:
|
||||||
// server, not the main application.
|
// server, not the main application.
|
||||||
virtual gfxASurface::MemoryLocation GetMemoryLocation() const;
|
virtual gfxASurface::MemoryLocation GetMemoryLocation() const;
|
||||||
|
|
||||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||||
GLXPixmap GetGLXPixmap();
|
GLXPixmap GetGLXPixmap();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ protected:
|
||||||
|
|
||||||
gfxIntSize mSize;
|
gfxIntSize mSize;
|
||||||
|
|
||||||
#if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
|
#if !defined(MOZ_PLATFORM_MAEMO)
|
||||||
GLXPixmap mGLXPixmap;
|
GLXPixmap mGLXPixmap;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче