Merge "Updated Outline.offset() docs to clarify behavior"

This commit is contained in:
Chet Haase
2021-10-05 20:05:53 +00:00
committed by Android (Google) Code Review

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) {