Updated Outline.offset() docs to clarify behavior

Bug: 202063656
Test: N/A, but added CTS sub-test for untested behavior
Change-Id: I86dc415879b23b92b9283c822094d4b811cd796f
This commit is contained in:
Chet Haase
2021-10-05 15:46:29 +00:00
parent 695b53f1b7
commit 6ad394ac04

View File

@@ -312,7 +312,10 @@ public final class Outline {
}
/**
* Offsets the Outline by (dx,dy)
* Offsets the Outline by (dx,dy). Offsetting is cumulative, so additional calls to
* offset() will add to previous offset values. Offset only applies to the current
* geometry (setRect(), setPath(), etc.); setting new geometry resets any existing
* offset.
*/
public void offset(int dx, int dy) {
if (mMode == MODE_ROUND_RECT) {