Closed
Bug 1514393
Opened 7 years ago
Closed 7 years ago
Export nsJPEGEncoder and isolate its internals
Categories
(Core :: Graphics, enhancement)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla66
| Tracking | Status | |
|---|---|---|
| firefox66 | --- | fixed |
People
(Reporter: beth, Assigned: beth)
References
Details
Attachments
(3 files)
nsJPEGEncoder is currently in an unexported header, which means to acquire a JPEG encoder we need to use XPCOM `do_CreateInstance`. Additionally, exposing this header for use in, e.g., the compositor to capture screenshots results in duplicate type definitions on Windows (from libjpeg and windows.h). This can be mitigated by not presenting the callbacks that libjpeg uses in the public header.
| Assignee | ||
Comment 1•7 years ago
|
||
Both libjpeg and windows.h typedef `boolean` to different types (`int` and
`unsiched char` respectively) and nsJPEGEncoder's public definition includes a
function that returns a `boolean`. Exposing this header results in type
conflicts.
We now isolate the internals of nsJPEGEncoder into a friend class whose
internals are hidden from the publica, allowing the header to exported.
| Assignee | ||
Comment 2•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
| Assignee | ||
Comment 3•7 years ago
|
||
Pushed by rvandermeulen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d81fe57537cb
Isolate internals of nsJPEGEncoder r=aosmond
https://hg.mozilla.org/integration/autoland/rev/9d5088dfe7d3
Export nsJPEGEncoder header r=aosmond
Keywords: checkin-needed
| Assignee | ||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d81fe57537cb
https://hg.mozilla.org/mozilla-central/rev/9d5088dfe7d3
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
| Assignee | ||
Updated•7 years ago
|
Pushed by nerli@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b350b5b4781e
Correct formatting in nsJPEGEncoder.cpp r=aosmond
Keywords: checkin-needed
Comment 8•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d81fe57537cb
https://hg.mozilla.org/mozilla-central/rev/9d5088dfe7d3
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
Resolution: --- → FIXED
Comment 9•7 years ago
|
||
| bugherder | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•