EGLDisplay.java revision 66a42db8cbfba902f72f0ace5ac448ef4bfd3951
166a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer/* 266a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** 366a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** Copyright 2012, The Android Open Source Project 466a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** 566a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** Licensed under the Apache License, Version 2.0 (the "License"); 666a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** you may not use this file except in compliance with the License. 766a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** You may obtain a copy of the License at 866a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** 966a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** http://www.apache.org/licenses/LICENSE-2.0 1066a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** 1166a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** Unless required by applicable law or agreed to in writing, software 1266a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** distributed under the License is distributed on an "AS IS" BASIS, 1366a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1466a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** See the License for the specific language governing permissions and 1566a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer** limitations under the License. 1666a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer*/ 1766a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer 1866a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshoferpackage android.opengl; 1966a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer 2066a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer/** 2166a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer * @hide 2266a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer */ 2366a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshoferpublic class EGLDisplay extends EGLObjectHandle { 2466a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer public EGLDisplay(int handle) { 2566a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer super(handle); 2666a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer } 2766a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer 2866a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer @Override 2966a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer public boolean equals(Object o) { 3066a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer if (this == o) return true; 3166a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer if (o == null || getClass() != o.getClass()) return false; 3266a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer 3366a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer EGLDisplay that = (EGLDisplay) o; 3466a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer return getHandle() == that.getHandle(); 3566a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer } 3666a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer 3766a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer @Override 3866a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer public int hashCode() { 3966a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer return getHandle(); 4066a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer } 4166a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer} 42