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

Sync changes from mozilla-central gfx/wr #3838

Merged
merged 2 commits into from Jan 21, 2020
Merged

Commits on Jan 21, 2020

  1. Bug 1607836 - use SmallVec for render task dependencies. r=gw

    The majority of render tasks have 0, 1 or 2 dependencies, except for pictures that typically have dozens to hundreds of dependencies. SmallVec with 2 inline elements avoids many tiny heap allocations in pages with a lot of text shadows and other types of render tasks.
    
    Differential Revision: https://phabricator.services.mozilla.com/D60151
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/db0378df4c6616330779c46cd830dd2f76f53b1b
    nical authored and moz-gfx committed Jan 21, 2020
  2. Bug 1607836 - Preallocate picture task dependency vectors. r=gw

    Unlike other types of render tasks, pictures can have hundreds of dependencies. The dependency vector is re-built every frame, leading to a lot of vector re-allocations in some pages.
    
    Depends on D60151
    
    Differential Revision: https://phabricator.services.mozilla.com/D60182
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/dfe4fa983d2b1eaaa3db2141a5e1c0f5ae58d5d7
    nical authored and moz-gfx committed Jan 21, 2020
You can’t perform that action at this time.