Commit 361d6d80 authored by Adam Barth's avatar Adam Barth

Merge pull request #499 from abarth/layer_borders

Re-enable support for debugPaintLayerBordersEnabled
parents 3654f0e2 2232ee56
......@@ -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