55 {
56 SkVector upper_left = clip_rrect.
radii(SkRRect::Corner::kUpperLeft_Corner);
57 SkVector upper_right = clip_rrect.
radii(SkRRect::Corner::kUpperRight_Corner);
58 SkVector lower_right = clip_rrect.
radii(SkRRect::Corner::kLowerRight_Corner);
59 SkVector lower_left = clip_rrect.
radii(SkRRect::Corner::kLowerLeft_Corner);
70 SkVector corners[] = {{transformed_upper_left_x, transformed_upper_left_y},
71 {transformed_upper_right_x, transformed_upper_right_y},
72 {transformed_lower_right_x, transformed_lower_right_y},
73 {transformed_lower_left_x, transformed_lower_left_y}};
74 transformed_rrect.
setRectRadii(transformed_clip_rect, corners);
75 return transformed_rrect.
contains(platformview_boundingrect);
76}
SkScalar mapRadius(SkScalar radius) const
const SkRect & rect() const
SkVector radii(Corner corner) const
void setRectRadii(const SkRect &rect, const SkVector radii[4])
bool contains(const SkRect &rect) const
constexpr float y() const
constexpr float x() const