2012-06-15 23:22:43 +00:00
|
|
|
/*
|
|
|
|
**
|
|
|
|
** Copyright 2012, The Android Open Source Project
|
|
|
|
**
|
|
|
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
** you may not use this file except in compliance with the License.
|
|
|
|
** You may obtain a copy of the License at
|
|
|
|
**
|
|
|
|
** http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
**
|
|
|
|
** Unless required by applicable law or agreed to in writing, software
|
|
|
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
** See the License for the specific language governing permissions and
|
|
|
|
** limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package android.opengl;
|
|
|
|
|
|
|
|
/**
|
2012-07-12 22:54:56 +00:00
|
|
|
* Wrapper class for native EGLSurface objects.
|
|
|
|
*
|
2012-06-15 23:22:43 +00:00
|
|
|
*/
|
|
|
|
public class EGLSurface extends EGLObjectHandle {
|
2014-02-13 09:47:18 +00:00
|
|
|
private EGLSurface(long handle) {
|
2012-06-15 23:22:43 +00:00
|
|
|
super(handle);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean equals(Object o) {
|
|
|
|
if (this == o) return true;
|
2013-06-21 23:02:11 +00:00
|
|
|
if (!(o instanceof EGLSurface)) return false;
|
2012-06-15 23:22:43 +00:00
|
|
|
|
|
|
|
EGLSurface that = (EGLSurface) o;
|
2014-02-13 09:47:18 +00:00
|
|
|
return getNativeHandle() == that.getNativeHandle();
|
2012-06-15 23:22:43 +00:00
|
|
|
}
|
|
|
|
}
|