avoid deprecated SkRect::MakeFromIRect

Change-Id: I55a5fd92b4b53b2676983233619cee4875967e01
Reviewed-on: https://skia-review.googlesource.com/10860
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
This commit is contained in:
Mike Klein 2017-03-30 18:30:50 -04:00 committed by Skia Commit-Bot
parent 9969e77141
commit 2f245be7be

View File

@ -24,7 +24,7 @@ public:
{
// Set the matrix and clip to match |fTarget|. Otherwise, we'll answer queries for
// bounds/matrix differently than |fTarget| would.
SkCanvas::onClipRect(SkRect::MakeFromIRect(fTarget->getDeviceClipBounds()),
SkCanvas::onClipRect(SkRect::Make(fTarget->getDeviceClipBounds()),
SkClipOp::kIntersect, kHard_ClipEdgeStyle);
SkCanvas::setMatrix(fTarget->getTotalMatrix());
}