From 3dac23bd4d6e77cae0fd7f2a79fd13444c223de4 Mon Sep 17 00:00:00 2001 From: rongliu Date: Wed, 14 Mar 2018 15:43:40 -0700 Subject: [PATCH] Assign -1 as default value of window type and owner uid. Bug: 74622357 Test: Test with ag/3738015 together. Layers without buffers have window type -1 and owner uid -1. Change-Id: I6f010bf1327671a06874b75bc0a63a3fb010ced7 --- core/java/android/view/SurfaceControl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/view/SurfaceControl.java b/core/java/android/view/SurfaceControl.java index 7ff4f21dd26fe..d4610a56332f8 100644 --- a/core/java/android/view/SurfaceControl.java +++ b/core/java/android/view/SurfaceControl.java @@ -353,8 +353,8 @@ public class SurfaceControl implements Parcelable { private int mFormat = PixelFormat.OPAQUE; private String mName; private SurfaceControl mParent; - private int mWindowType; - private int mOwnerUid; + private int mWindowType = -1; + private int mOwnerUid = -1; /** * Begin building a SurfaceControl with a given {@link SurfaceSession}.