From 1de09d73e854db38a8036aa656be706ce7c937fb Mon Sep 17 00:00:00 2001 From: Tetsuharu Ohzeki Date: Thu, 9 Sep 2021 15:46:19 +0000 Subject: [PATCH] Bug 1729817 - Remove unused TextureClient::PrintInfo(). r=gfx-reviewers,mattwoodrow Differential Revision: https://phabricator.services.mozilla.com/D125017 --- gfx/layers/client/TextureClient.cpp | 21 --------------------- gfx/layers/client/TextureClient.h | 2 -- 2 files changed, 23 deletions(-) diff --git a/gfx/layers/client/TextureClient.cpp b/gfx/layers/client/TextureClient.cpp index 83989ae1ca0a..ddb43ef16f8b 100644 --- a/gfx/layers/client/TextureClient.cpp +++ b/gfx/layers/client/TextureClient.cpp @@ -1412,27 +1412,6 @@ already_AddRefed TextureClient::GetAsSurface() { return data.forget(); } -void TextureClient::PrintInfo(std::stringstream& aStream, const char* aPrefix) { - aStream << aPrefix; - aStream << nsPrintfCString("TextureClient (0x%p)", this).get() - << " [size=" << GetSize() << "]" - << " [format=" << GetFormat() << "]" - << " [flags=" << mFlags << "]"; - -#ifdef MOZ_DUMP_PAINTING - if (StaticPrefs::layers_dump_texture()) { - nsAutoCString pfx(aPrefix); - pfx += " "; - - aStream << "\n" << pfx.get() << "Surface: "; - RefPtr dSurf = GetAsSurface(); - if (dSurf) { - aStream << gfxUtils::GetAsLZ4Base64Str(dSurf).get(); - } - } -#endif -} - void TextureClient::GetSurfaceDescriptorRemoteDecoder( SurfaceDescriptorRemoteDecoder* const aOutDesc) { const auto handle = GetSerial(); diff --git a/gfx/layers/client/TextureClient.h b/gfx/layers/client/TextureClient.h index 0ffa87695a23..cf92ee560c5b 100644 --- a/gfx/layers/client/TextureClient.h +++ b/gfx/layers/client/TextureClient.h @@ -487,8 +487,6 @@ class TextureClient : public AtomicRefCountedWithFinalize { */ already_AddRefed GetAsSurface(); - virtual void PrintInfo(std::stringstream& aStream, const char* aPrefix); - /** * Copies a rectangle from this texture client to a position in aTarget. * It is assumed that the necessary locks are in place; so this should at