Bug 1729817 - Remove unused TextureClient::PrintInfo(). r=gfx-reviewers,mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D125017
This commit is contained in:
Tetsuharu Ohzeki 2021-09-09 15:46:19 +00:00
Родитель be85536c1a
Коммит 1de09d73e8
2 изменённых файлов: 0 добавлений и 23 удалений

Просмотреть файл

@ -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();

Просмотреть файл

@ -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