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

Merged
merged 7 commits into from Jan 23, 2020
Merged

Commits on Jan 23, 2020

  1. Backed out changeset f3b490c076d6 (bug 1602643) for causing bustages …

    …regarding CompositorKindChanged
    
    CLOSED TREE
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/52234324a69eb012bac0b0897a66b754f416e413
    Mihai Alexandru Michis authored and moz-gfx committed Jan 23, 2020
  2. Bug 1606771 - Implement border-image-repeat: round in WebRender. r=jr…

    …muizel,kvark
    
    border-image-repeat: Round is equivalent to Repeat with the pattern size adjusted to fill the area with a whole number of repetitions. This is done by adjusting the segment's stretch_size in the shader so that it fits a whole number of times in the segment's size.
    
    Differential Revision: https://phabricator.services.mozilla.com/D59370
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/6b61867f80b123f11aa3e9252f0ac005a12787c0
    nical authored and moz-gfx committed Jan 23, 2020
  3. Bug 1606771 - Fix the middle area of border-image nine-patches. r=gw

    Unlike the border areas that only nead their own dimensions, the middle area of a border-image determines its repetition parameter based on the size of the borders. A new flag is provided for the brush_image shader to know whether to use the segment's own rect or look at the borders when computing the pattern's size.
    
    Differential Revision: https://phabricator.services.mozilla.com/D59675
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/834d49acd3c02a7e5ae75d0a4d01a55e69c8fdba
    nical authored and moz-gfx committed Jan 23, 2020
  4. Bug 1606771 - Fix border image repetition computation. r=gw

    The computation of the repetition depends on the aspect ratio of the segment's uv rectangle, which was previously represented by the dx/dy variables in the shader. These were mistakenly computing the ratio of the normalized uvs within the primitive's total uv rect, which was incorrect since the normalization introduces a non-uniform scale.
    This patch fixes it by taking the uv size in device pixels instead of the the normalized textel rect. dx and dy are also renamed into segment_uv_size which is a more informative name.
    
    Differential Revision: https://phabricator.services.mozilla.com/D60768
    
    [ghsync] From https://hg.mozilla.org/mozilla-central/rev/b77165c764503ccf3b0f52b60fff265d4048ba6e
    nical authored and moz-gfx committed Jan 23, 2020
You can’t perform that action at this time.