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_TEESURFACE_H michael@0: #define GFX_TEESURFACE_H michael@0: michael@0: #include "gfxASurface.h" michael@0: #include "nsTArrayForwardDeclare.h" michael@0: #include "nsSize.h" michael@0: michael@0: template class nsRefPtr; michael@0: michael@0: /** michael@0: * Wraps a cairo_tee_surface. The first surface in the surface list is the michael@0: * primary surface, which answers all surface queries (including size). michael@0: * All drawing is performed on all the surfaces. michael@0: * michael@0: * The device transform of a tee surface is applied before drawing to the michael@0: * underlying surfaces --- which also applies the device transforms of the michael@0: * underlying surfaces. michael@0: */ michael@0: class gfxTeeSurface : public gfxASurface { michael@0: public: michael@0: gfxTeeSurface(cairo_surface_t *csurf); michael@0: gfxTeeSurface(gfxASurface **aSurfaces, int32_t aSurfaceCount); michael@0: michael@0: virtual const gfxIntSize GetSize() const; michael@0: michael@0: /** michael@0: * Returns the list of underlying surfaces. michael@0: */ michael@0: void GetSurfaces(nsTArray > *aSurfaces); michael@0: }; michael@0: michael@0: #endif /* GFX_TEESURFACE_H */