am 3b703f2d: Hide Canvas.getGL()

* commit '3b703f2d11f20efaa953ad31d6c97fe3561efb03':
  Hide Canvas.getGL()
This commit is contained in:
Romain Guy
2011-01-10 16:41:54 -08:00
committed by Android Git Automerger
2 changed files with 8 additions and 13 deletions

View File

@@ -78255,17 +78255,6 @@
visibility="public"
>
</method>
<method name="getGL"
return="javax.microedition.khronos.opengles.GL"
abstract="false"
native="false"
synchronized="false"
static="false"
final="false"
deprecated="deprecated"
visibility="protected"
>
</method>
<method name="getHeight"
return="int"
abstract="false"

View File

@@ -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() {