Bug 1757123 - Remove BufferTextureData::RestoreOriginalDescriptor() r=gfx-reviewers,jrmuizel

RestoreOriginalDescriptor() is not used since Bug 1750858 fix.

Differential Revision: https://phabricator.services.mozilla.com/D139678
This commit is contained in:
sotaro 2022-02-25 08:26:43 +00:00
parent c0538156f9
commit 1145ad3b4c
2 changed files with 0 additions and 4 deletions

View File

@ -54,8 +54,6 @@ class BufferTextureData : public TextureData {
BufferTextureData* AsBufferTextureData() override { return this; }
virtual void RestoreOriginalDescriptor() {}
Maybe<gfx::IntSize> GetYSize() const;
Maybe<gfx::IntSize> GetCbCrSize() const;

View File

@ -81,8 +81,6 @@ bool YCbCrTextureClientAllocationHelper::IsCompatible(
BufferTextureData* bufferData =
aTextureClient->GetInternalData()->AsBufferTextureData();
bufferData->RestoreOriginalDescriptor();
if (!bufferData ||
!bufferData->GetPictureRect().IsEqualEdges(mData.GetPictureRect()) ||
bufferData->GetYSize().isNothing() ||