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

Commit b1bf8433 authored by Shai Barack's avatar Shai Barack Committed by Android (Google) Code Review
Browse files

Merge "Remove ViewRootImpl.profile()" into main

parents b8d1f365 8f414739
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -1382,17 +1382,6 @@ public final class ViewRootImpl implements ViewParent,
        }
    }
    // FIXME for perf testing only
    private boolean mProfile = false;
    /**
     * Call this to profile the next traversal call.
     * FIXME for perf testing only. Remove eventually
     */
    public void profile() {
        mProfile = true;
    }
    private boolean isInTouchMode() {
        if (mAttachInfo == null) {
            return mContext.getResources().getBoolean(R.bool.config_defaultInTouchMode);
@@ -3047,17 +3036,7 @@ public final class ViewRootImpl implements ViewParent,
        if (mTraversalScheduled) {
            mTraversalScheduled = false;
            mHandler.getLooper().getQueue().removeSyncBarrier(mTraversalBarrier);
            if (mProfile) {
                Debug.startMethodTracing("ViewAncestor");
            }
            performTraversals();
            if (mProfile) {
                Debug.stopMethodTracing();
                mProfile = false;
            }
        }
    }