diff --git a/gfx/layers/client/TextureClient.cpp b/gfx/layers/client/TextureClient.cpp index 83989ae1ca0afa3ee8d847c4eb36a255d44ef928..ddb43ef16f8b45e781c44b8a3ce25976f8ca1c92 100644 --- a/gfx/layers/client/TextureClient.cpp +++ b/gfx/layers/client/TextureClient.cpp @@ -1412,27 +1412,6 @@ already_AddRefed<gfx::DataSourceSurface> 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<gfx::DataSourceSurface> 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 0ffa87695a234c54b0fc1dca13a5645873da4b50..cf92ee560c5bc5514b75fe9414bd353099cd868d 100644 --- a/gfx/layers/client/TextureClient.h +++ b/gfx/layers/client/TextureClient.h @@ -487,8 +487,6 @@ class TextureClient : public AtomicRefCountedWithFinalize<TextureClient> { */ already_AddRefed<gfx::DataSourceSurface> 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