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

Commit 845535a7 authored by Bo Liu's avatar Bo Liu
Browse files

Convert a attach/detach functor in ViewRootImpl to x64

Change-Id: I93c1df8abd0ecd1686e392cada099f9864926d33
parent 0416faa2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -659,14 +659,14 @@ public final class ViewRootImpl implements ViewParent,
        mHandler.sendMessageAtFrontOfQueue(mHandler.obtainMessage(MSG_FLUSH_LAYER_UPDATES));
    }

    public void attachFunctor(int functor) {
    public void attachFunctor(long functor) {
        //noinspection SimplifiableIfStatement
        if (mAttachInfo.mHardwareRenderer != null && mAttachInfo.mHardwareRenderer.isEnabled()) {
            mAttachInfo.mHardwareRenderer.attachFunctor(mAttachInfo, functor);
        }
    }

    public void detachFunctor(int functor) {
    public void detachFunctor(long functor) {
        mBlockResizeBuffer = true;
        if (mAttachInfo.mHardwareRenderer != null) {
            mAttachInfo.mHardwareRenderer.detachFunctor(functor);