Skip to content

Commit b201dad

Browse files
committed
Ignore is_aa
1 parent 0b94e62 commit b201dad

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

display_list/display_list_matrix_clip_tracker.cc

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,6 @@ void DisplayListMatrixClipTracker::Data::clipBounds(const SkRect& clip,
242242
}
243243
SkRect rect;
244244
map_rect(clip, &rect);
245-
if (is_aa) {
246-
rect.roundOut(&rect);
247-
}
248245
if (!cull_rect_.intersect(rect)) {
249246
cull_rect_.setEmpty();
250247
}
@@ -256,15 +253,7 @@ void DisplayListMatrixClipTracker::Data::clipBounds(const SkRect& clip,
256253
}
257254
SkRect rect;
258255
if (map_rect(clip, &rect)) {
259-
// This technique only works if it is rect -> rect
260-
if (is_aa) {
261-
SkIRect rounded;
262-
rect.round(&rounded);
263-
if (rounded.isEmpty()) {
264-
break;
265-
}
266-
rect.set(rounded);
267-
}
256+
// This technique only works if it is rect -> rect}
268257
if (rect.fLeft <= cull_rect_.fLeft &&
269258
rect.fRight >= cull_rect_.fRight) {
270259
// bounds spans entire width of cull_rect_

0 commit comments

Comments
 (0)