michael@0: /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef GFX_QUARTZIMAGESURFACE_H michael@0: #define GFX_QUARTZIMAGESURFACE_H michael@0: michael@0: #include "gfxASurface.h" michael@0: #include "nsSize.h" michael@0: michael@0: class gfxImageSurface; michael@0: michael@0: class gfxQuartzImageSurface : public gfxASurface { michael@0: public: michael@0: gfxQuartzImageSurface(gfxImageSurface *imageSurface); michael@0: gfxQuartzImageSurface(cairo_surface_t *csurf); michael@0: michael@0: virtual ~gfxQuartzImageSurface(); michael@0: michael@0: already_AddRefed GetAsImageSurface(); michael@0: virtual int32_t KnownMemoryUsed(); michael@0: virtual const gfxIntSize GetSize() const { return gfxIntSize(mSize.width, mSize.height); } michael@0: michael@0: protected: michael@0: gfxIntSize mSize; michael@0: michael@0: private: michael@0: gfxIntSize ComputeSize(); michael@0: }; michael@0: michael@0: #endif /* GFX_QUARTZIMAGESURFACE_H */