summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-02-28 13:21:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-28 13:21:22 +0000
commitef23865154bf5e6c1768023dd69845353cf8c543 (patch)
tree2112ef069d660eb888c4e3ffcc23f7ff21105aa0 /opengl/java
parentddb90b65f7a4bc2c7b0d1af01af00bd0358ed361 (diff)
parent1801b180dac364a25ef12a5af01ce0bb5a74a601 (diff)
Merge "API changes for 64 bit platforms."
Diffstat (limited to 'opengl/java')
-rw-r--r--opengl/java/android/opengl/EGLObjectHandle.java29
1 files changed, 14 insertions, 15 deletions
diff --git a/opengl/java/android/opengl/EGLObjectHandle.java b/opengl/java/android/opengl/EGLObjectHandle.java
index e6e397602def..113f867c404f 100644
--- a/opengl/java/android/opengl/EGLObjectHandle.java
+++ b/opengl/java/android/opengl/EGLObjectHandle.java
@@ -24,36 +24,35 @@ package android.opengl;
public abstract class EGLObjectHandle {
private final long mHandle;
- // TODO Deprecate EGLObjectHandle(int) method
+ /**
+ * @deprecated Use {@link EGLObjectHandle(long)} instead. Handles
+ * on 64 bit platforms will be wider than java ints.
+ */
+ @Deprecated
protected EGLObjectHandle(int handle) {
mHandle = handle;
}
- // TODO Unhide the EGLObjectHandle(long) method
- /**
- * {@hide}
- */
protected EGLObjectHandle(long handle) {
mHandle = handle;
}
- // TODO Deprecate getHandle() method in favor of getNativeHandle()
/**
- * Returns the native handle of the wrapped EGL object. This handle can be
- * cast to the corresponding native type on the native side.
- *
- * For example, EGLDisplay dpy = (EGLDisplay)handle;
- *
- * @return the native handle of the wrapped EGL object.
+ * @deprecated Use {@link #getNativeHandle()} instead. Handles on
+ * 64 bit platforms will be wider than java ints.
*/
+ @Deprecated
public int getHandle() {
if ((mHandle & 0xffffffffL) != mHandle) {
throw new UnsupportedOperationException();
}
return (int)mHandle;
}
-
- // TODO Unhide getNativeHandle() method
/**
- * {@hide}
+ * Returns the native handle of the wrapped EGL object. This handle can be
+ * cast to the corresponding native type on the native side.
+ *
+ * For example, EGLDisplay dpy = (EGLDisplay)handle;
+ *
+ * @return the native handle of the wrapped EGL object.
*/
public long getNativeHandle() {
return mHandle;