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 #3794

Merged
merged 21 commits into from Nov 8, 2019
Merged

Sync changes from mozilla-central #3794

merged 21 commits into from Nov 8, 2019

Commits on Nov 6, 2019

  1. Bug 1594091 - Move user_data to the glyph instance w field. r=gw

    First patch in of series that will rearrange the layout of the glyph instance attributes so that it matches brush instances.
    This will be needed to add a unified shader that can render the most common alpha pass primitives, including text.
    
    Differential Revision: https://phabricator.services.mozilla.com/D51879
    
    [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/570d5ec05d035d9fb156c8cc336ad66885b21de6
    nical authored and moz-gfx committed Nov 6, 2019
  2. Bug 1594091 - Rename the instance user_data field into specific_resou…

    …rce_address. r=gw
    
    This user_data field is currently only used as an address for some shader-specific resource in the gpu cache. We can always rename it back to something generic if we ever need to use the bits differently in other shaders in the future.
    
    Depends on D51884
    
    Differential Revision: https://phabricator.services.mozilla.com/D51885
    
    [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/cd13f04835f4d9ebdfccd14b5f4afe6a8a8a2dbe
    nical authored and moz-gfx committed Nov 6, 2019
  3. Bug 1575258 - Make text rasterize, render and snap glyphs consistentl…

    …y. r=lsalzman
    
    The glyph pixel space in which we rasterized glyphs differed from how we
    rendered the rasterized glyphs in the shader. They need to be in
    agreement because the glyph subpixel offset selected during
    rasterization depends on it. This patch should make the paths consistent
    with each other.
    
    Additionally, during animations, we now snap the reference frame
    relative offset ignoring the impact of any animated transforms. This
    helps with minimizing glyph wiggling during the transition.
    
    Differential Revision: https://phabricator.services.mozilla.com/D51305
    
    [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/1e12f9b1812772fee75f80a38fd27b5fff8cffbc
    aosmond authored and moz-gfx committed Nov 6, 2019
  4. Bug 1593929 - Make invalidate_rendered_frame triggers force redraw r=…

    …nical
    
    Invalidate_rendered_frame expects full rendering in next WR rendering. Then when invalidate_rendered_frame is requested, we need to request force redraw. Otherwise, SwapChain might skip present call during partial present.
    
    Differential Revision: https://phabricator.services.mozilla.com/D51784
    
    [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/8189d25586fb6dd2d8e4f5bafbc43a1e31f4988e
    sotaro authored and moz-gfx committed Nov 6, 2019

Commits on Nov 7, 2019

  1. Bug 1594305 - Only allocate compositor surfaces for tiles that are no…

    …t occluded r=nical
    
    Tiles that are occluded are generally never seen, or only seen
    occasionally. To reduce the number of compositor surfaces:
    
     * Defer native surface allocation until after occlusion culling occurs.
     * If a tile has a native surface, then becomes occluded, drop the surface.
    
    With this scheme, the number of unused native surfaces will always be 0
    on a page that doesn't have scrolling. For a page that has a scrollable
    region, there will be a small number of unused tiles retained. The unused
    tiles are those that are (a) not occluded (b) not currently visible (c) are
    in the display port. We retain these for a small amount of time in case
    they get scrolled back on screen.
    
    This makes the allocation patterns for native surfaces match the way
    that picture cache surfaces are allocated for simple compositing mode.
    
    Differential Revision: https://phabricator.services.mozilla.com/D51973
    
    [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/70442369cd48e37b05d2982f4109622cf8209bc6
    Glenn Watson authored and moz-gfx committed Nov 7, 2019
  2. Bug 1589666 - Disable picture caching whilst pinch-zooming. r=gw

    Whilst pinch zooming, every picture cache tile gets completely
    invalidated every frame. It is therefore a waste of memory bandwidth
    to render in to picture cache tiles then composite those to the
    screen. This change dynamically disables picture caching for frames in
    which we are pinch zooming. The exception is if we are using a native
    compositor, in which case picture caching will remain enabled, because
    it relies on picture caching to work, and does not waste memory
    bandwidth.
    
    Differential Revision: https://phabricator.services.mozilla.com/D52017
    
    [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/dd0e1c0d6acc4b7cb8b8b251aa3da7984f8b496f
    jamienicol authored and moz-gfx committed Nov 7, 2019
  3. Backed out changeset 455d161a3fa9 (bug 1594524) for causing Wrench fa…

    …ilure in adb wait-for-device shell cat /sys/class/power_supply/battery/input_suspend 2>/dev/null. CLOSED TREE
    
    [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/b53c2535ec7da21a0046cc362263b741613c387d
    dgluca authored and moz-gfx committed Nov 7, 2019

Commits on Nov 8, 2019

  1. Bug 1594747. Update bitflags in WebRender to 1.2. r=kvark

    jrmuizel authored and moz-gfx committed Nov 8, 2019
  2. Bug 1575648 - don't set RUSTFLAGS='--deny warnings' (temporary fix) r…

    …=nical
    
    This change is a temporary fix to not set RUSTFLAGS='--deny warnings'
    in order to unblock https://bugzil.la/1575648 (which is time-critical).
    The longer term solution for this is https://bugzil.la/1564873.
    
    Differential Revision: https://phabricator.services.mozilla.com/D52360
    
    [wrupdater] From https://hg.mozilla.org/mozilla-central/rev/c61c05f3707767aaf77f7cffa741c86ef44ace2d
    petemoore authored and moz-gfx committed Nov 8, 2019
You can’t perform that action at this time.