Backed out changeset 5285464565a8 for landing with the wrong bug number in the commit message.

--HG--
extra : rebase_source : 9aff59b0badc1d7fb1a173471fb829f9320e311d
This commit is contained in:
Ryan VanderMeulen 2016-09-27 17:31:59 -04:00
parent 632d270fe0
commit 99dc13308f
2 changed files with 1 additions and 19 deletions

View File

@ -171,7 +171,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);

View File

@ -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 */