Merge pull request #499 from abarth/layer_borders

Re-enable support for debugPaintLayerBordersEnabled
This commit is contained in:
Adam Barth
2015-11-19 14:33:02 -08:00

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;