1 // vim:set ts=4 sts=2 sw=2 et cin:
2 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef GFX_SHARED_IMAGESURFACE_H
8 #define GFX_SHARED_IMAGESURFACE_H
10 #include "gfxBaseSharedMemorySurface.h"
12 class gfxSharedImageSurface
13 : public gfxBaseSharedMemorySurface
<gfxImageSurface
,
14 gfxSharedImageSurface
> {
15 typedef gfxBaseSharedMemorySurface
<gfxImageSurface
, gfxSharedImageSurface
>
17 friend class gfxBaseSharedMemorySurface
<gfxImageSurface
,
18 gfxSharedImageSurface
>;
21 gfxSharedImageSurface(const mozilla::gfx::IntSize
& aSize
, long aStride
,
22 gfxImageFormat aFormat
,
23 const mozilla::ipc::Shmem
& aShmem
)
24 : Super(aSize
, aStride
, aFormat
, aShmem
) {}
27 #endif /* GFX_SHARED_IMAGESURFACE_H */