Closed Bug 1709606 Opened 3 years ago Closed 3 years ago

Some cleanups for bug 1708416

Categories

(Core :: Widget: Gtk, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: rmader, Assigned: rmader)

References

Details

Attachments

(4 files)

Cleanup some code to make bug 1708416 nicer and potentially improve stability.

It's only used by the GTK backend and all other users are located
there as well. Further more, it's unlikely that the will ever be
another X11 backend or that these classes will get reused elsewhere.

So in order to keep changes to WindowSurface out of the common
widget space, move it into gtk.

While on it, also clean up the affected moz.build files a bit
by making orders more consistent. No functional changes intended.

Assignee: nobody → robert.mader
Status: NEW → ASSIGNED

There doesn't seem to be an obvious reason why it should not be
and allowing to hold additional refs appears to be desirable in
situation when we have to deal with callbacks, which may arrive
after WindowSurfaceProvider::CleanupResources() was called.

Depends on D114422

It is only used by the GTK backend, supports Wayland as well and
is highly unlikely to be reused by another backend.

This is also better in line with how this is handled for other
platforms.

While on it, do some small cleanups.

Depends on D114423

Nowadays we often use it for Wayland, which is confusing. Also, it
has a bunch of GTK specific functions, which an alternative X11
implementation would like not have. So a explicit name is probably
deserved.

Depends on D114424

Pushed by robert.mader@posteo.de:
https://hg.mozilla.org/integration/autoland/rev/e955745b8047
Move WindowSurface* into the gtk backend, r=stransky
https://hg.mozilla.org/integration/autoland/rev/878b9d8262e3
Make WindowSurface refcouted, r=stransky
https://hg.mozilla.org/integration/autoland/rev/059be8a083a3
Move GfxInfoX11 into gtk and remove X11 from the name, r=stransky
https://hg.mozilla.org/integration/autoland/rev/1cf17b2e8f9a
Rename CompositorWidget::AsX11() to CompositorWidget->AsGTK(), r=stransky,nical
Regressions: 1710348
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: