зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1111258 - Allow dumping textures without MOZ_DUMP_PAINTING. r=mstange
This commit is contained in:
Родитель
13bd8b32e9
Коммит
47e78f41b7
|
@ -255,12 +255,12 @@ ContentHostTexture::SetCompositor(Compositor* aCompositor)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef MOZ_DUMP_PAINTING
|
||||
void
|
||||
ContentHostTexture::Dump(std::stringstream& aStream,
|
||||
const char* aPrefix,
|
||||
bool aDumpHtml)
|
||||
{
|
||||
#ifdef MOZ_DUMP_PAINTING
|
||||
if (!aDumpHtml) {
|
||||
return;
|
||||
}
|
||||
|
@ -278,8 +278,8 @@ ContentHostTexture::Dump(std::stringstream& aStream,
|
|||
aStream << "> Front buffer on white </a> </li> ";
|
||||
}
|
||||
aStream << "</ul>";
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void
|
||||
AddWrappedRegion(const nsIntRegion& aInput, nsIntRegion& aOutput,
|
||||
|
|
|
@ -129,13 +129,10 @@ public:
|
|||
|
||||
virtual void SetCompositor(Compositor* aCompositor) MOZ_OVERRIDE;
|
||||
|
||||
#ifdef MOZ_DUMP_PAINTING
|
||||
virtual TemporaryRef<gfx::DataSourceSurface> GetAsSurface() MOZ_OVERRIDE;
|
||||
|
||||
virtual void Dump(std::stringstream& aStream,
|
||||
const char* aPrefix="",
|
||||
bool aDumpHtml=false) MOZ_OVERRIDE;
|
||||
#endif
|
||||
const char* aPrefix="") MOZ_OVERRIDE;
|
||||
|
||||
virtual void PrintInfo(std::stringstream& aStream, const char* aPrefix) MOZ_OVERRIDE;
|
||||
|
||||
|
|
|
@ -629,17 +629,14 @@ TiledContentHost::PrintInfo(std::stringstream& aStream, const char* aPrefix)
|
|||
aStream << aPrefix;
|
||||
aStream << nsPrintfCString("TiledContentHost (0x%p)", this).get();
|
||||
|
||||
#ifdef MOZ_DUMP_PAINTING
|
||||
if (gfxPrefs::LayersDumpTexture() || profiler_feature_active("layersdump")) {
|
||||
nsAutoCString pfx(aPrefix);
|
||||
pfx += " ";
|
||||
|
||||
Dump(aStream, pfx.get(), false);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef MOZ_DUMP_PAINTING
|
||||
void
|
||||
TiledContentHost::Dump(std::stringstream& aStream,
|
||||
const char* aPrefix,
|
||||
|
@ -678,7 +675,6 @@ TiledContentHost::Dump(std::stringstream& aStream,
|
|||
x += w;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
|
|
@ -256,11 +256,9 @@ public:
|
|||
virtual void Detach(Layer* aLayer = nullptr,
|
||||
AttachFlags aFlags = NO_FLAGS) MOZ_OVERRIDE;
|
||||
|
||||
#ifdef MOZ_DUMP_PAINTING
|
||||
virtual void Dump(std::stringstream& aStream,
|
||||
const char* aPrefix="",
|
||||
bool aDumpHtml=false) MOZ_OVERRIDE;
|
||||
#endif
|
||||
|
||||
virtual void PrintInfo(std::stringstream& aStream, const char* aPrefix);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче