Closed Bug 1188516 Opened 10 years ago Closed 9 years ago

Add support for wrapping tree cairo surfaces in a system cairo surface

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: acomminos, Assigned: acomminos)

Details

Attachments

(2 files)

There are several places in the GTK3 widget code where we require pulling out data from a tree cairo surface. Currently, this is accomplished by borrowing an XLib drawable or locking in-memory bits. We could reduce code duplication by providing a straightforward translation mechanism to get a system cairo_surface_t out of a Cairo DrawTarget or SourceSurface.
This adds BorrowedCairoSurface with support for the image and XLib backends.
Attachment #8639987 - Flags: review?(bas)
This changes DrawThemeWithCairo to use BorrowedCairoSurface. I'll write a patch for the drag and drop pixmap once it lands.
Attachment #8639990 - Flags: review?(lsalzman)
Attachment #8639990 - Flags: review?(lsalzman) → review-
Comment on attachment 8639987 [details] [diff] [review] Add BorrowedCairoSurface for retrieving a system cairo surface from a tree cairo surface. No more X!
Attachment #8639987 - Flags: review?(bas)
Not much point in improving QoL for an unsupported backend; closing :)
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: