diff options
| author | 2022-02-04 17:05:30 -0500 | |
|---|---|---|
| committer | 2022-02-08 03:05:30 +0000 | |
| commit | ffa81f86ba8bf824210589bc792da5edbe4d0321 (patch) | |
| tree | fa2762a9717ade9d3e5219a2a739131092e3430b /graphics/java/android | |
| parent | 8b60c74500ae383ba3b0d2f853df83efd2303a45 (diff) | |
Add setDataSpace SurfaceControl API
Also change DataSpace from long to int (HAL & native are both ints)
Bug: 217776226
Fixes: 218320444
Test: make && SurfaceControlTest#testSurfaceTransaction_setDataSpace
Change-Id: Ic2b9ccb1d0ba3c1d049839310b4fef0881a3d2e2
Diffstat (limited to 'graphics/java/android')
| -rw-r--r-- | graphics/java/android/graphics/SurfaceTexture.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/SurfaceTexture.java b/graphics/java/android/graphics/SurfaceTexture.java index d84a24db5c58..ee41148a7686 100644 --- a/graphics/java/android/graphics/SurfaceTexture.java +++ b/graphics/java/android/graphics/SurfaceTexture.java @@ -353,7 +353,7 @@ public class SurfaceTexture { * Retrieve the dataspace associated with the texture image. */ @SuppressLint("MethodNameUnits") - public @NamedDataSpace long getDataSpace() { + public @NamedDataSpace int getDataSpace() { return nativeGetDataSpace(); } @@ -426,7 +426,7 @@ public class SurfaceTexture { private native void nativeFinalize(); private native void nativeGetTransformMatrix(float[] mtx); private native long nativeGetTimestamp(); - private native long nativeGetDataSpace(); + private native int nativeGetDataSpace(); private native void nativeSetDefaultBufferSize(int width, int height); private native void nativeUpdateTexImage(); private native void nativeReleaseTexImage(); |