зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1279398 - Remove gfxUnknownSurface. r=eflores
This commit is contained in:
Родитель
0368b7ba6c
Коммит
04a5c746ec
|
@ -173,7 +173,7 @@ gfxASurface::Wrap (cairo_surface_t *csurf, const IntSize& aSize)
|
|||
}
|
||||
#endif
|
||||
else {
|
||||
result = new gfxUnknownSurface(csurf, aSize);
|
||||
MOZ_CRASH("Unknown cairo surface type");
|
||||
}
|
||||
|
||||
// fprintf(stderr, "New wrapper for %p -> %p\n", csurf, result);
|
||||
|
|
|
@ -183,22 +183,4 @@ protected:
|
|||
bool mSurfaceValid;
|
||||
};
|
||||
|
||||
/**
|
||||
* An Unknown surface; used to wrap unknown cairo_surface_t returns from cairo
|
||||
*/
|
||||
class gfxUnknownSurface : public gfxASurface {
|
||||
public:
|
||||
gfxUnknownSurface(cairo_surface_t *surf, const mozilla::gfx::IntSize& aSize)
|
||||
: mSize(aSize)
|
||||
{
|
||||
Init(surf, true);
|
||||
}
|
||||
|
||||
virtual ~gfxUnknownSurface() { }
|
||||
virtual const mozilla::gfx::IntSize GetSize() const override { return mSize; }
|
||||
|
||||
private:
|
||||
mozilla::gfx::IntSize mSize;
|
||||
};
|
||||
|
||||
#endif /* GFX_ASURFACE_H */
|
||||
|
|
Загрузка…
Ссылка в новой задаче