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

Commit c85dfb17 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove useless mContext var for TaskFpsCallbackController." into main...

Merge "Remove useless mContext var for TaskFpsCallbackController." into main am: 5dcfeb3f am: 0af3063f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3545939



Change-Id: Ib680721fe568da8f50c3f9b923beb0ddd7dc405b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents f66a357b 0af3063f
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
@@ -1449,7 +1449,7 @@ public class WindowManagerService extends IWindowManager.Stub
        mPresentationController = new PresentationController();

        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 -> {