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

Commit 44784a5a authored by Emilian Peev's avatar Emilian Peev Committed by Android (Google) Code Review
Browse files

Revert "Camera: Set device executor thread name"

This reverts commit 39513a31.

Reason for revert: It appears this is causing memory usage regressions in Crystalball. More information in b/361348383

Change-Id: I90d0e67fe3c91a4d46c659d0484bfb206816a407
parent 39513a31
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -80,7 +80,6 @@ import java.util.Set;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicBoolean;

/**
@@ -355,14 +354,7 @@ public class CameraDeviceImpl extends CameraDevice
        mCameraId = cameraId;
        if (Flags.singleThreadExecutor()) {
            mDeviceCallback = new ClientStateCallback(executor, callback);
            mDeviceExecutor = Executors.newSingleThreadExecutor(new ThreadFactory() {
                @Override
                public Thread newThread(Runnable r) {
                    Thread thread = Executors.defaultThreadFactory().newThread(r);
                    thread.setName("CameraDeviceExecutor");
                    return thread;
                }
            });
            mDeviceExecutor = Executors.newSingleThreadExecutor();
        } else {
            mDeviceCallback = callback;
            mDeviceExecutor = executor;