Closed Bug 1707202 Opened 3 years ago Closed 3 years ago

Remove surface_origin_is_top_left support from NativeSurface again

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: rmader, Assigned: rmader)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I.e. basically revert bug 1697673

Do so because:

  • using native compositor integration implies the y-flip can be done by the system compositor - usually an no extra cost
  • it was still incomplete and only used by the Wayland backend. Better not have any Wayland specific code paths, so we can be sure all Wayland specific bugs are in the dedicated backend
  • reducing unnecessary complexity is always good

Using native compositor integration should imply the y-flip can be
done by the system compositor - this is true for CA, DC and Wayland.
As the Wayland backend now does so, remove the
surface_origin_is_top_left support again, making sure
the Wayland backend uses the same code paths as CA/DC backends do.

Note:

  • In order to not regress bug 1680128, do not revert the override
    of SurfaceOriginIsTopLeft() in RenderCompositorNative.h
  • Explicitely set surface_origin_is_top_left: false in the example
    compositor. This is the default, however setting it explicitely
    would have helped me bring up the Wayland example compositor.
    This is purely a hint for potential future backends.
Assignee: nobody → robert.mader
Status: NEW → ASSIGNED
Pushed by robert.mader@posteo.de:
https://hg.mozilla.org/integration/autoland/rev/8ae3f3e51436
Remove surface_origin_is_top_left support from NativeSurface again, r=nical
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: