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 {
25ab6fc2a86f34be455c144a2d691e94909998c959Ashok Bhat    private EGLDisplay(long 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;
329a90aa9003f8b53a6e8ce20f97ef3ba87891697aAndy McFadden        if (!(o instanceof EGLDisplay)) return false;
3366a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer
3466a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer        EGLDisplay that = (EGLDisplay) o;
35ab6fc2a86f34be455c144a2d691e94909998c959Ashok Bhat        return getNativeHandle() == that.getNativeHandle();
3666a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer    }
3766a42db8cbfba902f72f0ace5ac448ef4bfd3951Thomas Tafertshofer}
38