tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

gfxSharedImageSurface.h (1079B)


      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/. */
      6 
      7 #ifndef GFX_SHARED_IMAGESURFACE_H
      8 #define GFX_SHARED_IMAGESURFACE_H
      9 
     10 #include "gfxBaseSharedMemorySurface.h"
     11 
     12 class gfxSharedImageSurface
     13    : public gfxBaseSharedMemorySurface<gfxImageSurface,
     14                                        gfxSharedImageSurface> {
     15  typedef gfxBaseSharedMemorySurface<gfxImageSurface, gfxSharedImageSurface>
     16      Super;
     17  friend class gfxBaseSharedMemorySurface<gfxImageSurface,
     18                                          gfxSharedImageSurface>;
     19 
     20 private:
     21  gfxSharedImageSurface(const mozilla::gfx::IntSize& aSize, long aStride,
     22                        gfxImageFormat aFormat,
     23                        const mozilla::ipc::Shmem& aShmem)
     24      : Super(aSize, aStride, aFormat, aShmem) {}
     25 };
     26 
     27 #endif /* GFX_SHARED_IMAGESURFACE_H */