Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0175536 authored by Andy McFadden's avatar Andy McFadden
Browse files

Fix wrapper equals()

Make it faster and correcter.

Bug 9204146

Change-Id: Ieeb97b72005e831ec6b94fc24ed2c3bc03307c2a
parent e36b9357
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
/*
**
** Copyright 2012, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ public class EGLConfig extends EGLObjectHandle {
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!(o instanceof EGLConfig)) return false;

        EGLConfig that = (EGLConfig) o;
        return getHandle() == that.getHandle();
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ public class EGLContext extends EGLObjectHandle {
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!(o instanceof EGLContext)) return false;

        EGLContext that = (EGLContext) o;
        return getHandle() == that.getHandle();
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ public class EGLDisplay extends EGLObjectHandle {
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!(o instanceof EGLDisplay)) return false;

        EGLDisplay that = (EGLDisplay) o;
        return getHandle() == that.getHandle();
+0 −1
Original line number Diff line number Diff line
/*
**
** Copyright 2013, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
Loading