Closed Bug 1231881 Opened 9 years ago Closed 8 years ago

Remove NativeSurfaceType::CAIRO_SURFACE

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

Attachments

(1 file, 1 obsolete file)

We have both NativeSurfaceType::CAIRO_CONTEXT and
NativeSurfaceType::CAIRO_SURFACE. They both refer to DrawTargets with Cairo
backends. The only reason for having both is so you can call GetNativeSurface()
and get either the |cairo_t*| or the underlying |cairo_surface_t*|.

I argue that this convenience confuses things more than it helps.
This patch removes CAIRO_SURFACE, and adds explicit cairo_get_target() calls
where necessary.
Attachment #8697476 - Flags: review?(bas)
(Fix Windows compile error.)
Attachment #8697483 - Flags: review?(bas)
Attachment #8697476 - Attachment is obsolete: true
Attachment #8697476 - Flags: review?(bas)
Comment on attachment 8697483 [details] [diff] [review]
Remove NativeSurfaceType::CAIRO_SURFACE

Review of attachment 8697483 [details] [diff] [review]:
-----------------------------------------------------------------

I agree.
Attachment #8697483 - Flags: review?(bas) → review+
https://hg.mozilla.org/mozilla-central/rev/0cd53e82df1f
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: