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

Commit cb883303 authored by Romain Guy's avatar Romain Guy
Browse files

Only destroy remote graphic buffers

Bug #9795157

Change-Id: Ia7a39d3ef40994fede185482a5b4ca5500249b34
parent b83f6223
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);
            }