mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 944703 - Part 6: make DeprecatedSharedPlanarYCbCrImage hold a strong reference to its ISurfaceAllocator - r=nical
This commit is contained in:
parent
0e4939b19e
commit
759b559e56
@ -45,6 +45,12 @@ SharedPlanarYCbCrImage::~SharedPlanarYCbCrImage() {
|
||||
}
|
||||
}
|
||||
|
||||
DeprecatedSharedPlanarYCbCrImage::DeprecatedSharedPlanarYCbCrImage(ISurfaceAllocator* aAllocator)
|
||||
: PlanarYCbCrImage(nullptr)
|
||||
, mSurfaceAllocator(aAllocator), mAllocated(false)
|
||||
{
|
||||
MOZ_COUNT_CTOR(DeprecatedSharedPlanarYCbCrImage);
|
||||
}
|
||||
|
||||
DeprecatedSharedPlanarYCbCrImage::~DeprecatedSharedPlanarYCbCrImage() {
|
||||
MOZ_COUNT_DTOR(DeprecatedSharedPlanarYCbCrImage);
|
||||
|
@ -30,12 +30,7 @@ class TextureClient;
|
||||
class DeprecatedSharedPlanarYCbCrImage : public PlanarYCbCrImage
|
||||
{
|
||||
public:
|
||||
DeprecatedSharedPlanarYCbCrImage(ISurfaceAllocator* aAllocator)
|
||||
: PlanarYCbCrImage(nullptr)
|
||||
, mSurfaceAllocator(aAllocator), mAllocated(false)
|
||||
{
|
||||
MOZ_COUNT_CTOR(DeprecatedSharedPlanarYCbCrImage);
|
||||
}
|
||||
DeprecatedSharedPlanarYCbCrImage(ISurfaceAllocator* aAllocator);
|
||||
|
||||
~DeprecatedSharedPlanarYCbCrImage();
|
||||
|
||||
@ -89,7 +84,7 @@ public:
|
||||
|
||||
private:
|
||||
ipc::Shmem mShmem;
|
||||
ISurfaceAllocator* mSurfaceAllocator;
|
||||
RefPtr<ISurfaceAllocator> mSurfaceAllocator;
|
||||
bool mAllocated;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user