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

Commit f56bbcc5 authored by Romain Guy's avatar Romain Guy Committed by Android Git Automerger
Browse files

am 0b451b3a: Merge "Only destroy remote graphic buffers Bug #9795157"

* commit '0b451b3a':
  Only destroy remote graphic buffers Bug #9795157
parents df29cde3 0b451b3a
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1983,9 +1983,14 @@ public abstract class HardwareRenderer {
                        if (map != null) {
                            GLES20Canvas.initAtlas(buffer, map);
                        }
                        // If IAssetAtlas is not the same class as the IBinder
                        // we are using a remote service and we can safely
                        // destroy the graphic buffer
                        if (atlas.getClass() != binder.getClass()) {
                            buffer.destroy();
                        }
                    }
                }
            } catch (RemoteException e) {
                Log.w(LOG_TAG, "Could not acquire atlas", e);
            }