Increase number of clip stack elements to examine in isRRect.

We had tried to do this in Android P but it was reverted due to what
was believed to be a driver bug related to multi-texturing in
GrTextureOp (since removed).

Change-Id: I3ad3630218f5d3d617a07776425972c2009c2ca9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/209641
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Salomon 2019-04-22 11:59:48 -04:00 committed by Skia Commit-Bot
parent a50484a570
commit 3061d27351

View File

@ -987,10 +987,10 @@ bool SkClipStack::isRRect(const SkRect& bounds, SkRRect* rrect, bool* aa) const
if (!backBounds.intersect(bounds, back->asDeviceSpaceRRect().rect())) {
return false;
}
// We limit to 5 elements. This means the back element will be bounds checked at most 4
// We limit to 17 elements. This means the back element will be bounds checked at most 16
// times if it is an rrect.
int cnt = fDeque.count();
if (cnt > 5) {
if (cnt > 17) {
return false;
}
if (cnt > 1) {