Closed
Bug 933019
Opened 11 years ago
Closed 10 years ago
Remove the gfxContext(gfxASurface*) constructor and lots of code that's then dead as a result
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: jwatt, Assigned: jwatt)
References
(Blocks 1 open bug)
Details
Attachments
(11 files)
2.08 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
1.30 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
1.38 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
10.95 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
6.10 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
1.38 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
13.50 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
1.69 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
7.88 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
2.07 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
63.35 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
Until we completely get rid of Thebes backed gfxContexts we're going to need to maintain Thebes and Moz2D code paths in lots of places in the tree. Matt has started getting rid of these in bug 922942, but there are still 70+ locations where the gfxContext(gfxASurface*) constructor is being invoked in the tree:
https://mxr.mozilla.org/mozilla-central/search?string=gfxContext%28&filter=[sS]urface&tree=mozilla-central
Comment 1•11 years ago
|
||
Interested in helping here. I will work that list backwards.
Comment 2•11 years ago
|
||
Actually I lied. I will start with this:
https://mxr.mozilla.org/mozilla-central/source/content/canvas/src/CanvasRenderingContext2D.cpp#2581
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jwatt
Keywords: leave-open
Summary: Eliminate all Thebes backed gfxContexts (i.e. consumers of the gfxContext(gfxASurface*) constructor) → Remove the gfxContext(gfxASurface*) constructor and lots of code that's then dead as a result
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8451048 -
Flags: review?(bas)
Assignee | ||
Updated•10 years ago
|
Attachment #8451048 -
Attachment description: part 3 - Remove the code for handling Thebes backed gfxContext in gfxDrawable.cpp → part 1 - Remove the gfxContext(gfxASurface*) constructor
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8451049 -
Flags: review?(bas)
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8451050 -
Flags: review?(bas)
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8451054 -
Flags: review?(bas)
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8451056 -
Flags: review?(bas)
Assignee | ||
Comment 8•10 years ago
|
||
Attachment #8451057 -
Flags: review?(bas)
Assignee | ||
Comment 9•10 years ago
|
||
Attachment #8451059 -
Flags: review?(bas)
Assignee | ||
Comment 10•10 years ago
|
||
Attachment #8451063 -
Flags: review?(bas)
Assignee | ||
Comment 11•10 years ago
|
||
Attachment #8451068 -
Flags: review?(bas)
Assignee | ||
Comment 12•10 years ago
|
||
Attachment #8451069 -
Flags: review?(bas)
Assignee | ||
Comment 13•10 years ago
|
||
Attachment #8451089 -
Flags: review?(bas)
Updated•10 years ago
|
Attachment #8451048 -
Flags: review?(bas) → review+
Updated•10 years ago
|
Attachment #8451049 -
Flags: review?(bas) → review+
Updated•10 years ago
|
Attachment #8451050 -
Flags: review?(bas) → review+
Updated•10 years ago
|
Attachment #8451054 -
Flags: review?(bas) → review+
Updated•10 years ago
|
Attachment #8451056 -
Flags: review?(bas) → review+
Updated•10 years ago
|
Attachment #8451057 -
Flags: review?(bas) → review+
Comment 14•10 years ago
|
||
Comment on attachment 8451059 [details] [diff] [review]
part 7 - Remove code for handling Thebes backed gfxContext from various files under layout/base/
Review of attachment 8451059 [details] [diff] [review]:
-----------------------------------------------------------------
::: layout/base/nsCSSRendering.cpp
@@ +2542,1 @@
> }
nit: I suspect this brace needs to go...
Attachment #8451059 -
Flags: review?(bas) → review+
Updated•10 years ago
|
Attachment #8451063 -
Flags: review?(bas) → review+
Updated•10 years ago
|
Attachment #8451068 -
Flags: review?(bas) → review+
Updated•10 years ago
|
Attachment #8451069 -
Flags: review?(bas) → review+
Comment 15•10 years ago
|
||
Comment on attachment 8451089 [details] [diff] [review]
part 11 - Remove gfxContext::mCairo
Review of attachment 8451089 [details] [diff] [review]:
-----------------------------------------------------------------
W00t!!!!
::: gfx/thebes/gfxContext.cpp
@@ -162,5 @@
> -
> - if (dx && dy)
> - cairo_surface_get_device_offset(s, dx, dy);
> - return gfxASurface::Wrap(s);
> - } else {
nit: This ought to need a closing brace removed somewhere... and some indentation change.
Attachment #8451089 -
Flags: review?(bas) → review+
Assignee | ||
Comment 16•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b7c3d87d9b4d
https://hg.mozilla.org/integration/mozilla-inbound/rev/1e83d71dcecc
https://hg.mozilla.org/integration/mozilla-inbound/rev/46eba5b59c8f
https://hg.mozilla.org/integration/mozilla-inbound/rev/a3f97f0f4ed4
https://hg.mozilla.org/integration/mozilla-inbound/rev/44f182e38e82
https://hg.mozilla.org/integration/mozilla-inbound/rev/ac38dea88f94
https://hg.mozilla.org/integration/mozilla-inbound/rev/e4d559c6ebb4
https://hg.mozilla.org/integration/mozilla-inbound/rev/b01d4ca9800f
https://hg.mozilla.org/integration/mozilla-inbound/rev/fb0e0980c8b3
https://hg.mozilla.org/integration/mozilla-inbound/rev/378079b096af
https://hg.mozilla.org/integration/mozilla-inbound/rev/f2973e80c482
Assignee | ||
Comment 17•10 years ago
|
||
Somehow the removal of CopySurface ended up in a later (not yet pushed) patch in my queue. Pushed separately:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e13ecd9e3def
Comment 18•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b7c3d87d9b4d
https://hg.mozilla.org/mozilla-central/rev/1e83d71dcecc
https://hg.mozilla.org/mozilla-central/rev/46eba5b59c8f
https://hg.mozilla.org/mozilla-central/rev/a3f97f0f4ed4
https://hg.mozilla.org/mozilla-central/rev/44f182e38e82
https://hg.mozilla.org/mozilla-central/rev/ac38dea88f94
https://hg.mozilla.org/mozilla-central/rev/e4d559c6ebb4
https://hg.mozilla.org/mozilla-central/rev/b01d4ca9800f
https://hg.mozilla.org/mozilla-central/rev/fb0e0980c8b3
https://hg.mozilla.org/mozilla-central/rev/378079b096af
https://hg.mozilla.org/mozilla-central/rev/f2973e80c482
https://hg.mozilla.org/mozilla-central/rev/e13ecd9e3def
Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Outstanding!
Assignee | ||
Comment 20•10 years ago
|
||
Thanks. :)
You need to log in
before you can comment on or make changes to this bug.
Description
•