packages/prepare/src/Prepare.js
function uploadGraphics(renderer, item)
{
    if (item instanceof Graphics)
    {
        // if the item is not dirty and already has webgl data, then it got prepared or rendered
        // before now and we shouldn't waste time updating it again
        if (item.dirty || item.clearDirty || !item._webGL[renderer.plugins.graphics.CONTEXT_UID])
        {
            renderer.plugins.graphics.updateGraphics(item);
        }

        return true;
    }

    return false;
}
function uploadGraphics(renderer, item)
{
    if (item instanceof Graphics)
    {
        // if the item is not dirty and already has webgl data, then it got prepared or rendered
        // before now and we shouldn't waste time updating it again
        if (item.dirty || item.clearDirty || !item._webGL[renderer.plugins.graphics.CONTEXT_UID])
        {
            renderer.plugins.graphics.updateGraphics(item);
        }

        return true;
    }

    return false;
}
function uploadGraphics ( renderer , item ) { if ( item instanceof Graphics ) { // if the item is not dirty and already has webgl data, then it got prepared or rendered // before now and we shouldn't waste time updating it again if ( item . dirty || item . clearDirty || ! item . _webGL [ renderer . plugins . graphics . CONTEXT_UID ] ) { renderer . plugins . graphics . updateGraphics ( item ) ; } return true ; } return false ; }
Built-in hook to upload PIXI.Graphics to the GPU.

@private
@param {PIXI.Renderer} renderer - instance of the webgl renderer
@param {PIXI.DisplayObject} item - Item to check
@return {boolean} If item was uploaded.
Built - in hook to upload PIXI . Graphics to the GPU .