зеркало из https://github.com/mozilla/pjs.git
Bug 556487 - XRenderFormat API for remote X-Surface handling. r=karlt,jmuizelaar a=blocking2.0
This commit is contained in:
Родитель
e2ac622f00
Коммит
4514bb4b4a
|
@ -47,6 +47,7 @@
|
|||
#include "nsAlgorithm.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsIPrefService.h"
|
||||
#include "cairo-xlib-xrender.h"
|
||||
|
||||
// Although the dimension parameters in the xCreatePixmapReq wire protocol are
|
||||
// 16-bit unsigned integers, the server's CreatePixmap returns BadAlloc if
|
||||
|
@ -494,3 +495,10 @@ gfxXlibSurface::FindRenderFormat(Display *dpy, gfxImageFormat format)
|
|||
|
||||
return (XRenderPictFormat*)NULL;
|
||||
}
|
||||
|
||||
XRenderPictFormat*
|
||||
gfxXlibSurface::XRenderFormat()
|
||||
{
|
||||
return cairo_xlib_surface_get_xrender_format(CairoSurface());
|
||||
}
|
||||
|
||||
|
|
|
@ -86,6 +86,7 @@ public:
|
|||
|
||||
Display* XDisplay() { return mDisplay; }
|
||||
Drawable XDrawable() { return mDrawable; }
|
||||
XRenderPictFormat* XRenderFormat();
|
||||
|
||||
static int DepthOfVisual(const Screen* screen, const Visual* visual);
|
||||
static Visual* FindVisual(Screen* screen, gfxImageFormat format);
|
||||
|
|
Загрузка…
Ссылка в новой задаче