Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert ClipIds for Clips into indices in the ClipScrollTree #2427

Merged
merged 1 commit into from Feb 16, 2018

Commits on Feb 16, 2018

  1. Convert ClipIds for Clips into indices in the ClipScrollTree

    During display list flattening, we convert ClipIds for the clipping node
    into ClipChainIndex (as well as allocating space for them in the
    ClipChain array in the ClipScrollTree). This allows us to avoid doing a
    HashMap lookup for the ClipChain for every primitive run. It also moves
    us a little closer to a universal representation of ClipChains (both
    API-defined ClipChains and ones derived from the hierarchy of the
    ClipScroll tree).
    
    This causes the amount of time spend doing HashMap lookups to decrease
    in the profile, though they are still done for the positioning node. A
    second patch will reduce HashMap lookups for positioning nodes as well.
    mrobinson committed Feb 16, 2018
You can’t perform that action at this time.