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
This commit is contained in:
Adam Barth
2016-01-11 14:22:38 -08:00
parent 41b8c988f2
commit 00359a4f96

View File

@@ -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);
}
}