EGLDisplay.java revision c5ee93e5fe2de4390ee96fb3b14c41f6ca45f5a2
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/** 21c5ee93e5fe2de4390ee96fb3b14c41f6ca45f5a2Thomas Tafertshofer * Wrapper class for native EGLDisplay objects. 22c5ee93e5fe2de4390ee96fb3b14c41f6ca45f5a2Thomas Tafertshofer * 2366a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer */ 2466a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshoferpublic class EGLDisplay extends EGLObjectHandle { 25c5ee93e5fe2de4390ee96fb3b14c41f6ca45f5a2Thomas Tafertshofer private EGLDisplay(int handle) { 2666a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer super(handle); 2766a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer } 2866a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer 2966a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer @Override 3066a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer public boolean equals(Object o) { 3166a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer if (this == o) return true; 3266a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer if (o == null || getClass() != o.getClass()) return false; 3366a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer 3466a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer EGLDisplay that = (EGLDisplay) o; 3566a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer return getHandle() == that.getHandle(); 3666a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer } 3766a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer} 38