From 00359a4f96658f1e96b6e58d59127a56295e8c6b Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 11 Jan 2016 14:22:38 -0800 Subject: [PATCH] RenderPerformanceOverlay needs alwaysNeedsCompositing The performance overlay is always drawn using the compositor. We should tell the rest of the system that it's going to make a composited layer. Fixes #1177 --- packages/flutter/lib/src/rendering/performance_overlay.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/flutter/lib/src/rendering/performance_overlay.dart b/packages/flutter/lib/src/rendering/performance_overlay.dart index 3500f2773c..700ea10a3a 100644 --- a/packages/flutter/lib/src/rendering/performance_overlay.dart +++ b/packages/flutter/lib/src/rendering/performance_overlay.dart @@ -67,6 +67,7 @@ class RenderPerformanceOverlay extends RenderBox { } bool get sizedByParent => true; + bool get alwaysNeedsCompositing => true; double getMinIntrinsicWidth(BoxConstraints constraints) { return constraints.constrainWidth(0.0); @@ -101,6 +102,7 @@ class RenderPerformanceOverlay extends RenderBox { } void paint(PaintingContext context, Offset offset) { + assert(needsCompositing); context.pushPerformanceOverlay(offset, optionsMask, rasterizerThreshold, size); } }