Skip to content

Commit 214de11

Browse files
johnstiles-googleSkia Commit-Bot
authored andcommitted
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>
1 parent 994ce8c commit 214de11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/debugger/DebugCanvas.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ DebugCanvas::DebugCanvas(int width, int height)
8686
this->INHERITED::onClipRect(large, kReplace_SkClipOp, kHard_ClipEdgeStyle);
8787
}
8888

89-
DebugCanvas::DebugCanvas(SkIRect bounds) {
90-
DebugCanvas(bounds.width(), bounds.height());
91-
}
89+
DebugCanvas::DebugCanvas(SkIRect bounds)
90+
: DebugCanvas(bounds.width(), bounds.height()) {}
9291

9392
DebugCanvas::~DebugCanvas() { fCommandVector.deleteAll(); }
9493

0 commit comments

Comments
 (0)