summaryrefslogtreecommitdiff
path: root/core/java/android/view/SurfaceSession.java
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2018-12-10 13:05:52 -0800
committerRobert Carr <racarr@google.com>2019-01-04 10:08:56 -0800
commit5fea55b2d2d27c5ff714897632735efb65a52d4c (patch)
treea0b8d0b9230c2b028452d8bfd18da49badcbb0fe /core/java/android/view/SurfaceSession.java
parentbeb7a0cf506936f95be64609a9c958925f6177f5 (diff)
Remove usage of scoped connections.
Tracking SurfaceFlinger changes. Now to construct a child surface we need the SurfaceControl as opposed to just the surface, and so we parcel the SurfaceControl across relayout. Test: Manual Bug: 62536731 Bug: 111373437 Bug: 111297488 Change-Id: I0a034767e92becec63071d7b1e3e71b95d505b77
Diffstat (limited to 'core/java/android/view/SurfaceSession.java')
-rw-r--r--core/java/android/view/SurfaceSession.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/java/android/view/SurfaceSession.java b/core/java/android/view/SurfaceSession.java
index a4fa12a57e93..361ac932758e 100644
--- a/core/java/android/view/SurfaceSession.java
+++ b/core/java/android/view/SurfaceSession.java
@@ -30,7 +30,6 @@ public final class SurfaceSession {
private long mNativeClient; // SurfaceComposerClient*
private static native long nativeCreate();
- private static native long nativeCreateScoped(long surfacePtr);
private static native void nativeDestroy(long ptr);
private static native void nativeKill(long ptr);
@@ -40,15 +39,6 @@ public final class SurfaceSession {
mNativeClient = nativeCreate();
}
- public SurfaceSession(Surface root) {
- synchronized (root.mLock) {
- if (root.mNativeObject == 0) {
- throw new IllegalStateException("Surface is not initialized or has been released");
- }
- mNativeClient = nativeCreateScoped(root.mNativeObject);
- }
- }
-
/* no user serviceable parts here ... */
@Override
protected void finalize() throws Throwable {