summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-04-12 16:22:15 -0700
committerMathias Agopian <mathias@google.com>2010-04-12 16:29:36 -0700
commit8b138323d54e36fd66b22a634494648e20c53373 (patch)
treee403ffb6131b32a5156e5f9868e0ae1408c96128 /core/java
parent5c7a69c3d6f41f60f4bfc3f7e3123941d382f3a7 (diff)
downloadframeworks_base-8b138323d54e36fd66b22a634494648e20c53373.zip
frameworks_base-8b138323d54e36fd66b22a634494648e20c53373.tar.gz
frameworks_base-8b138323d54e36fd66b22a634494648e20c53373.tar.bz2
don't hardcode "mSurface" throughout our source code
this is used in a few places to get access to the android.view.Surface native surface. use a macro instead. Also rename the field to mNativeSurface. Change-Id: I1c6dea14abd6b8b1392c7f97b304115999355094
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/Surface.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/java/android/view/Surface.java b/core/java/android/view/Surface.java
index 255e317..cde20e4 100644
--- a/core/java/android/view/Surface.java
+++ b/core/java/android/view/Surface.java
@@ -140,13 +140,13 @@ public class Surface implements Parcelable {
public static final int FLAGS_ORIENTATION_ANIMATION_DISABLE = 0x000000001;
@SuppressWarnings("unused")
- private int mSurface;
- @SuppressWarnings("unused")
private int mSurfaceControl;
@SuppressWarnings("unused")
private int mSaveCount;
@SuppressWarnings("unused")
private Canvas mCanvas;
+ @SuppressWarnings("unused")
+ private int mNativeSurface;
// 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.
@@ -420,13 +420,13 @@ public class Surface implements Parcelable {
/* no user serviceable parts here ... */
@Override
protected void finalize() throws Throwable {
- if (mSurface != 0 || mSurfaceControl != 0) {
+ if (mNativeSurface != 0 || mSurfaceControl != 0) {
if (DEBUG_RELEASE) {
Log.w(LOG_TAG, "Surface.finalize() has work. You should have called release() ("
- + mSurface + ", " + mSurfaceControl + ")", mCreationStack);
+ + mNativeSurface + ", " + mSurfaceControl + ")", mCreationStack);
} else {
Log.w(LOG_TAG, "Surface.finalize() has work. You should have called release() ("
- + mSurface + ", " + mSurfaceControl + ")");
+ + mNativeSurface + ", " + mSurfaceControl + ")");
}
}
release();