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

Commit ab709b24 authored by lijilou's avatar lijilou
Browse files

Remove useless mContext var for TaskFpsCallbackController.

Bug: none
Flag: EXEMPT minor optimization
Change-Id: I39e5798fbdb6869db1cc3ee78fb14c97e56915aa
parent 938bf3a5
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package com.android.server.wm;

import android.content.Context;
import android.os.IBinder;
import android.os.RemoteException;
import android.window.ITaskFpsCallback;
@@ -25,12 +24,10 @@ import java.util.HashMap;

final class TaskFpsCallbackController {

    private final Context mContext;
    private final HashMap<IBinder, Long> mTaskFpsCallbacks;
    private final HashMap<IBinder, IBinder.DeathRecipient> mDeathRecipients;

    TaskFpsCallbackController(Context context) {
        mContext = context;
    TaskFpsCallbackController() {
        mTaskFpsCallbacks = new HashMap<>();
        mDeathRecipients = new HashMap<>();
    }
+1 −1
Original line number Diff line number Diff line
@@ -1452,7 +1452,7 @@ public class WindowManagerService extends IWindowManager.Stub
        mStartingSurfaceController = new StartingSurfaceController(this);

        mBlurController = new BlurController(mContext, mPowerManager);
        mTaskFpsCallbackController = new TaskFpsCallbackController(mContext);
        mTaskFpsCallbackController = new TaskFpsCallbackController();
        mAccessibilityController = new AccessibilityController(this);
        mScreenRecordingCallbackController = new ScreenRecordingCallbackController(this);
        mSystemPerformanceHinter = new SystemPerformanceHinter(mContext, displayId -> {