зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1729817 - Remove unused WebRenderImageHost::PrintInfo(). r=gfx-reviewers,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D125018
This commit is contained in:
Родитель
1de09d73e8
Коммит
26d69b10cf
|
@ -192,8 +192,6 @@ class CompositableHost {
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
virtual void PrintInfo(std::stringstream& aStream, const char* aPrefix) = 0;
|
||||
|
||||
struct TimedTexture {
|
||||
CompositableTextureHostRef mTexture;
|
||||
TimeStamp mTimeStamp;
|
||||
|
|
|
@ -479,31 +479,6 @@ void TextureHost::EnsureRenderTexture(
|
|||
CreateRenderTexture(mExternalImageId.ref());
|
||||
}
|
||||
|
||||
void TextureHost::PrintInfo(std::stringstream& aStream, const char* aPrefix) {
|
||||
aStream << aPrefix;
|
||||
aStream << nsPrintfCString("%s (0x%p)", Name(), this).get();
|
||||
// Note: the TextureHost needs to be locked before it is safe to call
|
||||
// GetSize() and GetFormat() on it.
|
||||
if (Lock()) {
|
||||
aStream << " [size=" << GetSize() << "]"
|
||||
<< " [format=" << GetFormat() << "]";
|
||||
Unlock();
|
||||
}
|
||||
aStream << " [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 TextureHost::Updated(const nsIntRegion* aRegion) {
|
||||
UpdatedInternal(aRegion);
|
||||
}
|
||||
|
|
|
@ -606,7 +606,6 @@ class TextureHost : public AtomicRefCountedWithFinalize<TextureHost> {
|
|||
virtual void ForgetBufferActor() {}
|
||||
|
||||
virtual const char* Name() { return "TextureHost"; }
|
||||
virtual void PrintInfo(std::stringstream& aStream, const char* aPrefix);
|
||||
|
||||
/**
|
||||
* Indicates whether the TextureHost implementation is backed by an
|
||||
|
|
|
@ -202,20 +202,6 @@ void WebRenderImageHost::SetTextureSourceProvider(
|
|||
CompositableHost::SetTextureSourceProvider(aProvider);
|
||||
}
|
||||
|
||||
void WebRenderImageHost::PrintInfo(std::stringstream& aStream,
|
||||
const char* aPrefix) {
|
||||
aStream << aPrefix;
|
||||
aStream << nsPrintfCString("WebRenderImageHost (0x%p)", this).get();
|
||||
|
||||
nsAutoCString pfx(aPrefix);
|
||||
pfx += " ";
|
||||
for (const auto& img : Images()) {
|
||||
aStream << "\n";
|
||||
img.mTextureHost->PrintInfo(aStream, pfx.get());
|
||||
aStream << " [picture-rect=" << img.mPictureRect << "]";
|
||||
}
|
||||
}
|
||||
|
||||
void WebRenderImageHost::Dump(std::stringstream& aStream, const char* aPrefix,
|
||||
bool aDumpHtml) {
|
||||
for (const auto& img : Images()) {
|
||||
|
|
|
@ -52,8 +52,6 @@ class WebRenderImageHost : public CompositableHost, public ImageComposite {
|
|||
|
||||
gfx::IntSize GetImageSize() override;
|
||||
|
||||
void PrintInfo(std::stringstream& aStream, const char* aPrefix) override;
|
||||
|
||||
void Dump(std::stringstream& aStream, const char* aPrefix = "",
|
||||
bool aDumpHtml = false) override;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче