зеркало из https://github.com/mozilla/pjs.git
Bug 593268 - Part 2.5: Update gfxASurface::SurfaceTypes to be in sync with Cairo. r=Bas
This commit is contained in:
Родитель
47195b5103
Коммит
97d018ee72
|
@ -460,10 +460,19 @@ static const char *sSurfaceNamesForSurfaceType[] = {
|
||||||
"gfx/surface/quartzimage",
|
"gfx/surface/quartzimage",
|
||||||
"gfx/surface/script",
|
"gfx/surface/script",
|
||||||
"gfx/surface/qpainter",
|
"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(NS_ARRAY_LENGTH(sSurfaceNamesForSurfaceType) == gfxASurface::SurfaceTypeMax);
|
||||||
|
PR_STATIC_ASSERT(CAIRO_SURFACE_TYPE_D2D == gfxASurface::SurfaceTypeD2D);
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
SurfaceMemoryReporterPathForType(gfxASurface::gfxSurfaceType aType)
|
SurfaceMemoryReporterPathForType(gfxASurface::gfxSurfaceType aType)
|
||||||
|
|
|
@ -89,7 +89,15 @@ public:
|
||||||
SurfaceTypeQuartzImage,
|
SurfaceTypeQuartzImage,
|
||||||
SurfaceTypeScript,
|
SurfaceTypeScript,
|
||||||
SurfaceTypeQPainter,
|
SurfaceTypeQPainter,
|
||||||
|
SurfaceTypeRecording,
|
||||||
|
SurfaceTypeVG,
|
||||||
|
SurfaceTypeGL,
|
||||||
|
SurfaceTypeDRM,
|
||||||
|
SurfaceTypeTee,
|
||||||
|
SurfaceTypeXML,
|
||||||
|
SurfaceTypeSkia,
|
||||||
SurfaceTypeDDraw,
|
SurfaceTypeDDraw,
|
||||||
|
SurfaceTypeD2D,
|
||||||
SurfaceTypeMax
|
SurfaceTypeMax
|
||||||
} gfxSurfaceType;
|
} gfxSurfaceType;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче