Re-enable support for debugPaintLayerBordersEnabled

We lost this feature at some point. This patch brings it back.
This commit is contained in:
Adam Barth
2015-11-19 13:51:17 -08:00
parent fd1dd7fafc
commit 2232ee568a

View File

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