am 8138cb49: Make Surface.toString() show more useful info to help debug bug 2594388.
Merge commit '8138cb49e47f9a9905a316a217757710185c66aa' into froyo-plus-aosp * commit '8138cb49e47f9a9905a316a217757710185c66aa': Make Surface.toString() show more useful info to help debug bug 2594388.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user