Bug 1757202 - Include the inner window id in the existing Composite markers, r=mstange.

Differential Revision: https://phabricator.services.mozilla.com/D139731
This commit is contained in:
Florian Quèze 2022-03-11 07:49:05 +00:00
parent 253d6198c8
commit 9c9aca9d89

View File

@ -500,9 +500,6 @@ void RenderThread::UpdateAndRender(
const Maybe<gfx::IntSize>& aReadbackSize,
const Maybe<wr::ImageFormat>& aReadbackFormat,
const Maybe<Range<uint8_t>>& aReadbackBuffer, bool* aNeedsYFlip) {
std::string markerName = "Composite #" + std::to_string(AsUint64(aWindowId));
AUTO_PROFILER_TRACING_MARKER("Paint", markerName.c_str(), GRAPHICS);
AUTO_PROFILER_LABEL("RenderThread::UpdateAndRender", GRAPHICS);
MOZ_ASSERT(IsInRenderThread());
MOZ_ASSERT(aRender || aReadbackBuffer.isNothing());
@ -517,6 +514,11 @@ void RenderThread::UpdateAndRender(
auto& renderer = it->second;
std::string markerName = "Composite #" + std::to_string(AsUint64(aWindowId));
AutoProfilerTracing tracingCompositeMarker(
"Paint", markerName.c_str(), geckoprofiler::category::GRAPHICS,
Some(renderer->GetCompositorBridge()->GetInnerWindowId()));
if (renderer->IsPaused()) {
aRender = false;
}