Bug 821474 - Add memory reporting for Shmem and Memory texture clients. r=BenWa
This commit is contained in:
@@ -38,6 +38,11 @@ public:
|
||||
mBufferLocked = nullptr;
|
||||
}
|
||||
|
||||
virtual void ForgetSharedData() MOZ_OVERRIDE
|
||||
{
|
||||
mBufferLocked = nullptr;
|
||||
}
|
||||
|
||||
private:
|
||||
RefPtr<GraphicBufferLocked> mBufferLocked;
|
||||
};
|
||||
@@ -66,6 +71,11 @@ public:
|
||||
mGrallocActor = nullptr;
|
||||
}
|
||||
|
||||
virtual void ForgetSharedData() MOZ_OVERRIDE
|
||||
{
|
||||
mGrallocActor = nullptr;
|
||||
}
|
||||
|
||||
private:
|
||||
GrallocBufferActor* mGrallocActor;
|
||||
};
|
||||
@@ -73,6 +83,7 @@ private:
|
||||
TextureClientData*
|
||||
GrallocTextureClientOGL::DropTextureData()
|
||||
{
|
||||
MarkInvalid();
|
||||
if (mBufferLocked) {
|
||||
TextureClientData* result = new GraphicBufferLockedTextureClientData(mBufferLocked);
|
||||
mBufferLocked = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user