| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package com.google.android.gles_jni; |
| 18 |
|
| 19 |
import javax.microedition.khronos.egl.*; |
| 20 |
|
| 21 |
public class EGLSurfaceImpl extends EGLSurface { |
| 22 |
long mEGLSurface; |
| 23 |
public EGLSurfaceImpl() { |
| 24 |
mEGLSurface = 0; |
| 25 |
} |
| 26 |
public EGLSurfaceImpl(long surface) { |
| 27 |
mEGLSurface = surface; |
| 28 |
} |
| 29 |
|
| 30 |
@Override |
| 31 |
public boolean equals(Object o) { |
| 32 |
if (this == o) return true; |
| 33 |
if (o == null || getClass() != o.getClass()) return false; |
| 34 |
|
| 35 |
EGLSurfaceImpl that = (EGLSurfaceImpl) o; |
| 36 |
|
| 37 |
return mEGLSurface == that.mEGLSurface; |
| 38 |
|
| 39 |
} |
| 40 |
|
| 41 |
@Override |
| 42 |
public int hashCode() { |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
int result = 17; |
| 48 |
result = 31 * result + (int) (mEGLSurface ^ (mEGLSurface >>> 32)); |
| 49 |
return result; |
| 50 |
} |
| 51 |
} |