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

Commit caf94773 authored by Bo Liu's avatar Bo Liu Committed by Android (Google) Code Review
Browse files

Merge "Convert a attach/detach functor in ViewRootImpl to x64"

parents fb40d78c 845535a7
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);