зеркало из https://github.com/mozilla/gecko-dev.git
Bug 907926 - Add support for windows surfaces in DrawTargetCairo size lookup. r=Bas
This commit is contained in:
Родитель
fc0b8ab200
Коммит
7790f9d502
|
@ -27,6 +27,10 @@
|
|||
#include "cairo-xlib.h"
|
||||
#endif
|
||||
|
||||
#ifdef CAIRO_HAS_WIN32_SURFACE
|
||||
#include "cairo-win32.h"
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace mozilla {
|
||||
|
@ -106,6 +110,15 @@ GetCairoSurfaceSize(cairo_surface_t* surface, IntSize& size)
|
|||
return true;
|
||||
}
|
||||
#endif
|
||||
#ifdef CAIRO_HAS_WIN32_SURFACE
|
||||
case CAIRO_SURFACE_TYPE_WIN32:
|
||||
case CAIRO_SURFACE_TYPE_WIN32_PRINTING:
|
||||
{
|
||||
size.width = cairo_win32_surface_get_width(surface);
|
||||
size.height = cairo_win32_surface_get_height(surface);
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
default:
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче