Bug 556487 - XRenderFormat API for remote X-Surface handling. r=karlt,jmuizelaar a=blocking2.0

This commit is contained in:
Oleg Romashin 2010-09-08 08:55:14 -07:00
parent 4682c37ce5
commit 8af3b31ddc
2 changed files with 9 additions and 0 deletions

View File

@ -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());
}

View File

@ -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);