On current gecko, NotifyDidRender is posted after gpu tasks wait of RenderCompositorANGLE::WaitForPreviousPresentQuery(). https://dxr.mozilla.org/mozilla-central/source/gfx/webrender_bindings/RenderThread.cpp#403 But the WaitForPreviousPresentQuery() is not necessary for the NotifyDidRender. The NotifyDidRender is called for current webrender rendering, that is posted by "mSwapChain->Present(0, 0)". The WaitForPreviousPresentQuery() does wait for gpu tasks of 2 previous webrender rendering. It is necessary for Textures recycling of AsyncImagePipelineManager and for avoiding GPU queue is filled with too much tasks.
Assignee: nobody → sotaro.ikeda.g
Attachment #9023925 - Flags: review?(matt.woodrow)
6 months ago
Attachment #9023925 - Flags: review?(matt.woodrow) → review+
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/95ba19cf3ce2 Wait for GPU after posting NotifyDidRender r=mattwoodrow
You need to log in before you can comment on or make changes to this bug.