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:
parent
9969e77141
commit
2f245be7be
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user