Note that with commmenting out the gfxCriticalError() in this function and in the next, like:
static inline cairo_content_t GfxFormatToCairoContent(SurfaceFormat format) { switch (format) { case SurfaceFormat::A8R8G8B8_UINT32: return CAIRO_CONTENT_COLOR_ALPHA; case SurfaceFormat::X8R8G8B8_UINT32: case SurfaceFormat::R5G6B5_UINT16: //fall through return CAIRO_CONTENT_COLOR; case SurfaceFormat::A8: return CAIRO_CONTENT_ALPHA; default: // gfxCriticalError() << "Unknown image content format " << (int)format; return CAIRO_CONTENT_COLOR_ALPHA; } }
makes it mostly work, only a full clienat area black flash every now and then
Note that with commmenting out the gfxCriticalError() in this function and in the next, like:
static inline cairo_content_t oContent( SurfaceFormat format) :A8R8G8B8_ UINT32: COLOR_ALPHA; :X8R8G8B8_ UINT32: :R5G6B5_ UINT16: //fall through COLOR; ALPHA; COLOR_ALPHA;
GfxFormatToCair
{
switch (format)
{
case SurfaceFormat:
return CAIRO_CONTENT_
case SurfaceFormat:
case SurfaceFormat:
return CAIRO_CONTENT_
case SurfaceFormat::A8:
return CAIRO_CONTENT_
default:
// gfxCriticalError() << "Unknown image content format " << (int)format;
return CAIRO_CONTENT_
}
}
makes it mostly work, only a full clienat area black flash every now and then