From 1145ad3b4cfdb6edc05bdba738b9fe260bdb9e02 Mon Sep 17 00:00:00 2001 From: sotaro Date: Fri, 25 Feb 2022 08:26:43 +0000 Subject: [PATCH] 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 --- gfx/layers/BufferTexture.h | 2 -- gfx/layers/client/TextureClientRecycleAllocator.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/gfx/layers/BufferTexture.h b/gfx/layers/BufferTexture.h index 21af1671089d..24725d1393c1 100644 --- a/gfx/layers/BufferTexture.h +++ b/gfx/layers/BufferTexture.h @@ -54,8 +54,6 @@ class BufferTextureData : public TextureData { BufferTextureData* AsBufferTextureData() override { return this; } - virtual void RestoreOriginalDescriptor() {} - Maybe GetYSize() const; Maybe GetCbCrSize() const; diff --git a/gfx/layers/client/TextureClientRecycleAllocator.cpp b/gfx/layers/client/TextureClientRecycleAllocator.cpp index 45899a120530..7d06e6d129b0 100644 --- a/gfx/layers/client/TextureClientRecycleAllocator.cpp +++ b/gfx/layers/client/TextureClientRecycleAllocator.cpp @@ -81,8 +81,6 @@ bool YCbCrTextureClientAllocationHelper::IsCompatible( BufferTextureData* bufferData = aTextureClient->GetInternalData()->AsBufferTextureData(); - bufferData->RestoreOriginalDescriptor(); - if (!bufferData || !bufferData->GetPictureRect().IsEqualEdges(mData.GetPictureRect()) || bufferData->GetYSize().isNothing() ||