Closed
Bug 1514393
Opened 5 years ago
Closed 5 years ago
Export nsJPEGEncoder and isolate its internals
Categories
(Core :: Graphics, enhancement)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: barret, Assigned: barret)
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•5 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•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•5 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 3•5 years ago
|
||
Try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=a147bb7b5de9123fcf3e46d93c9f031aa0381c0d&selectedJob=217124300
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•5 years ago
|
||
Comment 6•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d81fe57537cb https://hg.mozilla.org/mozilla-central/rev/9d5088dfe7d3
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Assignee | ||
Updated•5 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•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d81fe57537cb https://hg.mozilla.org/mozilla-central/rev/9d5088dfe7d3
Status: REOPENED → RESOLVED
Closed: 5 years ago → 5 years ago
Resolution: --- → FIXED
Comment 9•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b350b5b4781e
You need to log in
before you can comment on or make changes to this bug.
Description
•