don't use deprecated api
BUG=skia:
Change-Id: I25886b9cc8df9235b925582f15bea14fffe855db
NOTRY=True
Reviewed-on: https://skia-review.googlesource.com/5940
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
diff --git a/include/core/SkClipStack.h b/include/core/SkClipStack.h
index 4ca0915..95e8a94 100644
--- a/include/core/SkClipStack.h
+++ b/include/core/SkClipStack.h
@@ -366,7 +366,7 @@
// An optimized version of clipDevRect(emptyRect, kIntersect, ...)
void clipEmpty();
void setDeviceClipRestriction(const SkIRect& rect) {
- fClipRestrictionRect = SkRect::MakeFromIRect(rect);
+ fClipRestrictionRect = SkRect::Make(rect);
}
/**
diff --git a/src/core/SkRasterClip.h b/src/core/SkRasterClip.h
index 4b19f6a..0dc84e4 100644
--- a/src/core/SkRasterClip.h
+++ b/src/core/SkRasterClip.h
@@ -149,8 +149,7 @@
inline void applyClipRestriction(SkRegion::Op op, SkRect* bounds) {
if (op >= SkRegion::kUnion_Op && fClipRestrictionRect
&& !fClipRestrictionRect->isEmpty()) {
- auto fClipRestrictionRect2 = SkRect::MakeFromIRect(*fClipRestrictionRect);
- if (!bounds->intersect(fClipRestrictionRect2)) {
+ if (!bounds->intersect(SkRect::Make(*fClipRestrictionRect))) {
bounds->setEmpty();
}
}