Bug 593268 - Part 2.5: Update gfxASurface::SurfaceTypes to be in sync with Cairo. r=Bas

This commit is contained in:
Jeff Muizelaar 2010-09-08 05:27:34 +02:00
Родитель 47195b5103
Коммит 97d018ee72
2 изменённых файлов: 18 добавлений и 1 удалений

Просмотреть файл

@ -460,10 +460,19 @@ static const char *sSurfaceNamesForSurfaceType[] = {
"gfx/surface/quartzimage",
"gfx/surface/script",
"gfx/surface/qpainter",
"gfx/surface/ddraw"
"gfx/surface/recording",
"gfx/surface/vg",
"gfx/surface/gl",
"gfx/surface/drm",
"gfx/surface/tee",
"gfx/surface/xml",
"gfx/surface/skia",
"gfx/surface/ddraw",
"gfx/surface/d2d"
};
PR_STATIC_ASSERT(NS_ARRAY_LENGTH(sSurfaceNamesForSurfaceType) == gfxASurface::SurfaceTypeMax);
PR_STATIC_ASSERT(CAIRO_SURFACE_TYPE_D2D == gfxASurface::SurfaceTypeD2D);
static const char *
SurfaceMemoryReporterPathForType(gfxASurface::gfxSurfaceType aType)

Просмотреть файл

@ -89,7 +89,15 @@ public:
SurfaceTypeQuartzImage,
SurfaceTypeScript,
SurfaceTypeQPainter,
SurfaceTypeRecording,
SurfaceTypeVG,
SurfaceTypeGL,
SurfaceTypeDRM,
SurfaceTypeTee,
SurfaceTypeXML,
SurfaceTypeSkia,
SurfaceTypeDDraw,
SurfaceTypeD2D,
SurfaceTypeMax
} gfxSurfaceType;