summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorMihai Popa <popam@google.com>2019-02-18 15:17:09 +0000
committerMihai Popa <popam@google.com>2019-03-20 16:08:46 +0000
commitef456970feab5bcd71587e1c6e22b7f86b18b3ec (patch)
treec1d4cff1be51464f990a31f18ebf603862b13550 /rs/java/android/renderscript/RenderScript.java
parent095adc27dcf8a6322e50367eafecf53224294b0f (diff)
[Magnifier-80] Make API getters relative to window
The CL updates Magnifier#getPosition() and Magnifier#getSourcePosition() to return coordinates relative to the main application window, rather than relative to the surface backing it. Working with window relative coordinates is the better approach for public APIs. The CL also makes View#getLocationInSurface public. Magnifier CTS tests still need it, when testing MAX_IN_SURFACE behavior. Bug: 124012182 Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest Change-Id: I684f27aa466e0390c7801b616331f4682784c423
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions