Closed
Bug 1258751
Opened 9 years ago
Closed 8 years ago
Delete the CoreGraphics backend (remove DrawTargetCG)
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla52
People
(Reporter: mchang, Assigned: mchang)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
123.56 KB,
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1186552 +++
Delete the CoreGraphics backend once skia-content reaches release on OS X.
Assignee | ||
Comment 1•9 years ago
|
||
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)
Comment 2•9 years ago
|
||
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.
Assignee | ||
Comment 3•9 years ago
|
||
(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?)
Assignee | ||
Comment 5•9 years ago
|
||
From our conversation today, we'll delete this in 53.
Comment 6•9 years ago
|
||
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+
Assignee | ||
Comment 7•8 years ago
|
||
Try looks good - https://treeherder.mozilla.org/#/jobs?repo=try&revision=a3935fbcd268
Pushed by mchang@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a0eeb7cf36fc
Delete the CoreGraphics backend. r=mstange
Comment 9•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
![]() |
||
Updated•8 years ago
|
Summary: Delete the CoreGraphics backend → Delete the CoreGraphics backend (remove DrawTargetCG)
Comment 10•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2da969fcf8424a525f9048eaf7da336db45c3e86
Bug 1258751 - followup: remove out-of-date comment. r=me DONTBUILD
Comment 11•8 years ago
|
||
bugherder |
Comment 12•8 years ago
|
||
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.
Description
•