mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 556487 - XRenderFormat API for remote X-Surface handling. r=karlt,jmuizelaar a=blocking2.0
This commit is contained in:
parent
4682c37ce5
commit
8af3b31ddc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user