From 081b1e93a146b5ef533d4a9fda9665cbdb405618 Mon Sep 17 00:00:00 2001 From: Toothbrush Date: Mon, 16 Nov 2015 17:09:34 +0000 Subject: [PATCH] Fixes #8546 Fixes issue #8546 --- components/compositing/compositor.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index 58efffe6d6c..0dcf3cf3bd0 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -615,20 +615,18 @@ impl IOCompositor { } (Msg::CollectMemoryReports(reports_chan), ShutdownState::NotShuttingDown) => { - let mut reports = vec![]; let name = "compositor-task"; // These are both `ExplicitUnknownLocationSize` because the memory might be in the // GPU or on the heap. - reports.push(mem::Report { + let mut reports = vec![mem::Report { path: path![name, "surface-map"], kind: ReportKind::ExplicitUnknownLocationSize, size: self.surface_map.mem(), - }); - reports.push(mem::Report { + }, mem::Report { path: path![name, "layer-tree"], kind: ReportKind::ExplicitUnknownLocationSize, size: self.scene.get_memory_usage(), - }); + }]; reports_chan.send(reports); }