Closed Bug 1554525 Opened 5 years ago Closed 5 years ago

[Wayland] Implement WindowBackBufferDMABuf backend for Wayland renderer

Categories

(Core :: Widget: Gtk, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

Details

Attachments

(1 file)

Implement new WindowBackBufferDMABuf Wayland backend surface type for WindowSurfaceWayland. This backend allows to draw directly to video memory and bypass a wayland compositor.

  • Rename recent WindowBackBuffer class to WindowBackBufferShm to clearly state that it uses Shm memory to store the pixel buffer.
  • Implement WindowBackBufferDMABuf which stores pixel data in GPU memory in WaylandDMABufSurface object.
  • Use WaylandDMABufSurface as a wayland backend when DMABuf is available and gfx.wayland_dmabuf_backend.enabled is set.
  • Implement WindowImageSurface which temporary stores front buffer pixel data. It's used when front buffer is used by compositor and we want to draw.
    Instead of the front/back buffer flip and read-back data from front buffer, don't flip, store the drawing and draw the pixels when compositor
    releases the front buffer.

Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2bb77ed1fcc5
[Wayland] Implement WindowBackBufferDMABuf backend for Wayland renderer, r=jhorak

Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
Regressions: 1555899
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: