Closed Bug 1258751 Opened 9 years ago Closed 8 years ago

Delete the CoreGraphics backend (remove DrawTargetCG)

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox48 --- affected
firefox52 --- fixed

People

(Reporter: mchang, Assigned: mchang)

References

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1186552 +++ Delete the CoreGraphics backend once skia-content reaches release on OS X.
Depends on: 1258752
Depends on: 1274720
Blocks: 1274692
I had to reorganize a few things in DrawTargetCG.h into Helpers.h as some of that was shared with other parts of the code. Otherwise, it's a straight deletion. It also includes the promised ASCII art tombstone for DrawTargetCG we can optionally keep :).
Attachment #8766462 - Flags: review?(mstange)
I'd rather wait a while with this unless there's a compelling reason to delete it now. It's currently handy to be able to switch backends just for testing.
(In reply to Jeff Muizelaar [:jrmuizel] from comment #2) > I'd rather wait a while with this unless there's a compelling reason to > delete it now. It's currently handy to be able to switch backends just for > testing. How long is a while? I wasn't going to land this until Gecko 51 also.
Right we talked about the timing - 48 is when we first ship Skia content, which means 51 is as early as we could do it. No harm in waiting a release or two longer. If we wait until 53, we will have one more ESR (52) with the ability to switch. On the other hand, we have already broken CG backend in nightly, from what I can tell (no popups?)
From our conversation today, we'll delete this in 53.
Comment on attachment 8766462 [details] [diff] [review] Delete the Coregraphics Backend Review of attachment 8766462 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/2d/DrawTargetCG.h @@ +13,5 @@ > + * * > + * * > + * * > + * ____ ____ ____ * > + * | _ \ |_ _| | _ \ * Yeah, now that we've all had one good look at this tombstone, let's stop there and not actually include it in the code. :-) ::: gfx/2d/ScaledFontMac.cpp @@ +86,5 @@ > return ScaledFontBase::GetPathForGlyphs(aBuffer, aTarget); > } > > void > ScaledFontMac::CopyGlyphsToBuilder(const GlyphBuffer &aBuffer, PathBuilder *aBuilder, BackendType aBackendType, const Matrix *aTransformHint) Let's remove the override completely. ::: widget/uikit/nsWindow.mm @@ -364,5 @@ > - dt->AddUserData(&gfxContext::sDontUseAsSourceKey, dt, nullptr); > - targetContext = gfxContext::CreateOrNull(dt); > - } else if (gfxPlatform::GetPlatform()->SupportsAzureContentForType(gfx::BackendType::CAIRO)) { > - // This is dead code unless you mess with prefs, but keep it around for > - // debugging. Please don't remove this comment.
Attachment #8766462 - Flags: review?(mstange) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Summary: Delete the CoreGraphics backend → Delete the CoreGraphics backend (remove DrawTargetCG)
PathCG is still alive. Should it go away, too?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: