diff options
| author | Marco Nelissen <marcone@google.com> | 2010-04-26 16:05:48 -0700 |
|---|---|---|
| committer | Marco Nelissen <marcone@google.com> | 2010-04-26 16:51:17 -0700 |
| commit | 8138cb49e47f9a9905a316a217757710185c66aa (patch) | |
| tree | d46da3d8151204161e2656987ea0d9e3b4ae0204 /core/java/android | |
| parent | 27fba6797b07583ef6c280bc287bf327e47f5e66 (diff) | |
Make Surface.toString() show more useful info to help debug bug 2594388.
Change-Id: I005d3388503d8886e11a26fece30b87572934f15
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/Surface.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/view/Surface.java b/core/java/android/view/Surface.java index 6a9218aacb49..83ef8ba51747 100644 --- a/core/java/android/view/Surface.java +++ b/core/java/android/view/Surface.java @@ -147,6 +147,7 @@ public class Surface implements Parcelable { private int mSaveCount; @SuppressWarnings("unused") private Canvas mCanvas; + private String mName; // The display metrics used to provide the pseudo canvas size for applications // running in compatibility mode. This is set to null for non compatibility mode. @@ -204,6 +205,7 @@ public class Surface implements Parcelable { } mCanvas = new CompatibleCanvas(); init(s,pid,name,display,w,h,format,flags); + mName = name; } /** @@ -386,7 +388,7 @@ public class Surface implements Parcelable { @Override public String toString() { - return "Surface(native-token=" + mSurface + ")"; + return "Surface(name=" + mName + ", identity=" + getIdentity() + ")"; } private Surface(Parcel source) throws OutOfResourcesException { @@ -437,4 +439,6 @@ public class Surface implements Parcelable { throws OutOfResourcesException; private native void init(Parcel source); + + private native int getIdentity(); } |
