Commit 2232ee56 authored by Adam Barth's avatar Adam Barth

Re-enable support for debugPaintLayerBordersEnabled

We lost this feature at some point. This patch brings it back.
parent fd1dd7fa
......@@ -158,6 +158,16 @@ class PaintingContext {
void _stopRecordingIfNeeded() {
if (!_isRecording)
return;
assert(() {
if (debugPaintLayerBordersEnabled) {
Paint paint = new Paint()
..style = ui.PaintingStyle.stroke
..strokeWidth = 1.0
..color = debugPaintLayerBordersColor;
canvas.drawRect(_paintBounds, paint);
}
return true;
});
_currentLayer.picture = _recorder.endRecording();
_currentLayer = null;
_recorder = null;
......
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