mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1072313: P2 Prevent instanciating MacIOSurfaceLib directly. r=mattwoodrow
This class only contains static members.
This commit is contained in:
parent
2512edb342
commit
08cfb39751
@ -62,7 +62,7 @@ enum CGContextType {
|
||||
|
||||
CGContextType GetContextType(CGContextRef ref);
|
||||
|
||||
class MacIOSurface : public mozilla::external::AtomicRefCounted<MacIOSurface> {
|
||||
class MacIOSurface final : public mozilla::external::AtomicRefCounted<MacIOSurface> {
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(MacIOSurface)
|
||||
typedef mozilla::gfx::SourceSurface SourceSurface;
|
||||
@ -82,7 +82,7 @@ public:
|
||||
explicit MacIOSurface(const void *aIOSurfacePtr,
|
||||
double aContentsScaleFactor = 1.0,
|
||||
bool aHasAlpha = true);
|
||||
virtual ~MacIOSurface();
|
||||
~MacIOSurface();
|
||||
IOSurfaceID GetIOSurfaceID();
|
||||
void *GetBaseAddress();
|
||||
void *GetBaseAddressOfPlane(size_t planeIndex);
|
||||
@ -125,9 +125,9 @@ private:
|
||||
bool mHasAlpha;
|
||||
};
|
||||
|
||||
class MacIOSurfaceLib: public MacIOSurface {
|
||||
class MacIOSurfaceLib {
|
||||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(MacIOSurfaceLib)
|
||||
MacIOSurfaceLib() = delete;
|
||||
static void *sIOSurfaceFramework;
|
||||
static void *sOpenGLFramework;
|
||||
static void *sCoreGraphicsFramework;
|
||||
|
Loading…
Reference in New Issue
Block a user