summaryrefslogtreecommitdiffstats
path: root/graphics/java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-01-10 16:33:48 -0800
committerRomain Guy <romainguy@google.com>2011-01-10 16:42:55 -0800
commit3b703f2d11f20efaa953ad31d6c97fe3561efb03 (patch)
tree701ac837fcc0618ed88ac5b8ec55897c25abb711 /graphics/java
parentfe852e216fdfab20e7b3d3e55247f70634d267b9 (diff)
downloadframeworks_base-3b703f2d11f20efaa953ad31d6c97fe3561efb03.zip
frameworks_base-3b703f2d11f20efaa953ad31d6c97fe3561efb03.tar.gz
frameworks_base-3b703f2d11f20efaa953ad31d6c97fe3561efb03.tar.bz2
Hide Canvas.getGL()
Change-Id: I6d81cf9f43ce0c990fe30b3b3159c95ac738ae79
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/Canvas.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java
index 66c6d81..184620b 100644
--- a/graphics/java/android/graphics/Canvas.java
+++ b/graphics/java/android/graphics/Canvas.java
@@ -85,8 +85,12 @@ public class Canvas {
@Override
protected void finalize() throws Throwable {
- if (mNativeCanvas != 0) {
- finalizer(mNativeCanvas);
+ try {
+ if (mNativeCanvas != 0) {
+ finalizer(mNativeCanvas);
+ }
+ } finally {
+ super.finalize();
}
}
}
@@ -137,6 +141,8 @@ public class Canvas {
* Returns null.
*
* @deprecated This method is not supported and should not be invoked.
+ *
+ * @hide
*/
@Deprecated
protected GL getGL() {