The mTextSlop contains the cursor ring test area.
The mTestBounds contains the total test area.
Use the former when checking to see if text is
drawn outside of the cursor rings, but inside
the bounds.
bug:
3307120
Change-Id: Ice69ce3d70aabb435890a0fd8848ef3fe2de9796
layers->getBounds().fRight, layers->getBounds().fBottom,
collectGlyphs ? "true" : "false",
mTestBounds.intersects(*layers) ? "true" : "false",
- mTestBounds.contains(*layers) ? "true" : "false");
+ mTextSlop.contains(*layers) ? "true" : "false");
if (collectGlyphs && layerType == kDrawGlyph_Type) {
if (!mTestBounds.intersects(*layers))
continue;
- if (!mTestBounds.contains(*layers))
+ if (!mTextSlop.contains(*layers))
return false;
foundGlyph = true;
}