// Binds mTexName and the current buffer to TEXTURE_EXTERNAL target.
// If the bind succeeds, this calls doFenceWait.
status_t BufferLayerConsumer::bindTextureImageLocked() {
    ATRACE_CALL();

    if (mCurrentTextureBuffer != nullptr && mCurrentTextureBuffer->graphicBuffer() != nullptr) {
        return mRE.bindExternalTextureBuffer(mTexName, mCurrentTextureBuffer->graphicBuffer(),
                                             mCurrentFence);
    }

    return NO_INIT;
}

mCurrentTextureBuffer 是在 BufferLayerConsumer::updateAndReleaseLocked() 中更新的,它是 BufferLayerConsumer::Image 类型,包含 GraphicBuffer 成员。