summaryrefslogtreecommitdiffstats
path: root/opengl/java/com/google/android/gles_jni/EGLSurfaceImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'opengl/java/com/google/android/gles_jni/EGLSurfaceImpl.java')
-rw-r--r--opengl/java/com/google/android/gles_jni/EGLSurfaceImpl.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/opengl/java/com/google/android/gles_jni/EGLSurfaceImpl.java b/opengl/java/com/google/android/gles_jni/EGLSurfaceImpl.java
index f6b90ab..e7f15dc 100644
--- a/opengl/java/com/google/android/gles_jni/EGLSurfaceImpl.java
+++ b/opengl/java/com/google/android/gles_jni/EGLSurfaceImpl.java
@@ -29,4 +29,20 @@ public class EGLSurfaceImpl extends EGLSurface {
mEGLSurface = surface;
mNativePixelRef = 0;
}
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+
+ EGLSurfaceImpl that = (EGLSurfaceImpl) o;
+
+ return mEGLSurface == that.mEGLSurface;
+
+ }
+
+ @Override
+ public int hashCode() {
+ return mEGLSurface;
+ }
}