summaryrefslogtreecommitdiff
path: root/core/java/android/view/SurfaceControl.java
diff options
context:
space:
mode:
authorNader Jawad <njawad@google.com>2021-05-05 02:59:18 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-05-05 02:59:18 +0000
commit603d612707a2579578e736ac9fdca2cfe548ad64 (patch)
treebd96c66c62f167d062f4c0b0f0f2331792cb5700 /core/java/android/view/SurfaceControl.java
parenta94c55f2f491f8353a6c15ad96bdcae02dbccef6 (diff)
parent197743ff9c6ffb7bc96004c38b518fd3941948b0 (diff)
Merge "Update hole punch logic in HWUI" into sc-dev
Diffstat (limited to 'core/java/android/view/SurfaceControl.java')
-rw-r--r--core/java/android/view/SurfaceControl.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/core/java/android/view/SurfaceControl.java b/core/java/android/view/SurfaceControl.java
index 1ae7ab0de96c..45c49352afff 100644
--- a/core/java/android/view/SurfaceControl.java
+++ b/core/java/android/view/SurfaceControl.java
@@ -146,8 +146,9 @@ public final class SurfaceControl implements Parcelable {
private static native void nativeSetBlurRegions(long transactionObj, long nativeObj,
float[][] regions, int length);
private static native void nativeSetStretchEffect(long transactionObj, long nativeObj,
- float left, float top, float right, float bottom, float vecX, float vecY,
- float maxStretchAmount);
+ float width, float height, float vecX, float vecY,
+ float maxStretchAmountX, float maxStretchAmountY, float childRelativeLeft,
+ float childRelativeTop, float childRelativeRight, float childRelativeBottom);
private static native boolean nativeClearContentFrameStats(long nativeObject);
private static native boolean nativeGetContentFrameStats(long nativeObject, WindowContentFrameStats outStats);
@@ -3038,11 +3039,14 @@ public final class SurfaceControl implements Parcelable {
/**
* @hide
*/
- public Transaction setStretchEffect(SurfaceControl sc, float left, float top, float right,
- float bottom, float vecX, float vecY, float maxStretchAmount) {
+ public Transaction setStretchEffect(SurfaceControl sc, float width, float height,
+ float vecX, float vecY, float maxStretchAmountX,
+ float maxStretchAmountY, float childRelativeLeft, float childRelativeTop, float childRelativeRight,
+ float childRelativeBottom) {
checkPreconditions(sc);
- nativeSetStretchEffect(mNativeObject, sc.mNativeObject, left, top, right, bottom,
- vecX, vecY, maxStretchAmount);
+ nativeSetStretchEffect(mNativeObject, sc.mNativeObject, width, height,
+ vecX, vecY, maxStretchAmountX, maxStretchAmountY, childRelativeLeft, childRelativeTop,
+ childRelativeRight, childRelativeBottom);
return this;
}