Fix DebugCanvas(SkIRect) constructor.

Change-Id: Ie4f24ca0f6bce03b665c8b517c0ed80cc57b0588
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/306726
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
This commit is contained in:
John Stiles 2020-07-29 17:26:28 -04:00 committed by Skia Commit-Bot
parent 994ce8cf23
commit 214de11183

View File

@ -86,9 +86,8 @@ DebugCanvas::DebugCanvas(int width, int height)
this->INHERITED::onClipRect(large, kReplace_SkClipOp, kHard_ClipEdgeStyle);
}
DebugCanvas::DebugCanvas(SkIRect bounds) {
DebugCanvas(bounds.width(), bounds.height());
}
DebugCanvas::DebugCanvas(SkIRect bounds)
: DebugCanvas(bounds.width(), bounds.height()) {}
DebugCanvas::~DebugCanvas() { fCommandVector.deleteAll(); }