Commit 00359a4f authored by Adam Barth's avatar Adam Barth

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
parent 41b8c988
...@@ -67,6 +67,7 @@ class RenderPerformanceOverlay extends RenderBox { ...@@ -67,6 +67,7 @@ class RenderPerformanceOverlay extends RenderBox {
} }
bool get sizedByParent => true; bool get sizedByParent => true;
bool get alwaysNeedsCompositing => true;
double getMinIntrinsicWidth(BoxConstraints constraints) { double getMinIntrinsicWidth(BoxConstraints constraints) {
return constraints.constrainWidth(0.0); return constraints.constrainWidth(0.0);
...@@ -101,6 +102,7 @@ class RenderPerformanceOverlay extends RenderBox { ...@@ -101,6 +102,7 @@ class RenderPerformanceOverlay extends RenderBox {
} }
void paint(PaintingContext context, Offset offset) { void paint(PaintingContext context, Offset offset) {
assert(needsCompositing);
context.pushPerformanceOverlay(offset, optionsMask, rasterizerThreshold, size); context.pushPerformanceOverlay(offset, optionsMask, rasterizerThreshold, size);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment