Andrew Osmond
46d4432faa
Bug 1388332 - Fix a shutdown crash when destroying image decoders before initializing its SurfacePipe. r=tnikkel
...
A default constructed SurfacePipe contains a NullSurfaceSink as its
filter in mHead. This filter does nothing and is merely a placeholder.
Since most SurfacePipe objects are constructed with the default
constructor, and NullSurfaceSink has no (modified) state, we use a
singleton to represent it. Normally the SurfacePipe owns its filter, so
it needs to do a special check for NullSurfaceSink to ensure it doesn't
free it explicitly.
A Decoder object contains a default constructed SurfacePipe until it
needs to create the first frame from an image. This is a very brief
window because it does not take very long or much data to get to this
stage of decoding.
The NullSurfaceSink singleton is freed upon shutdown, however some
ISurfaceProvider objects may be lingering after this. If their Decoder
has yet to create the first frame, that means the SurfacePipe actually
contains a dangling pointer to the already freed singleton. To make
things worse, it actually tried to free the filter because it didn't
match the singleton (it got freed!).
As such, this change removes NullSurfaceSink entirely. We never use the
SurfacePipe before initializing it with a proper filter, and it would be
considered a programming error to do so. Instead let SurfacePipe::mHead
be null, and assert that it is not null when any operations are
performed on the SurfacePipe.
2017-08-09 06:54:55 -04:00
Ehsan Akhgari
40ff5f8646
Back out bug 1357107 since it broke a feature that we have no automated tests for...
2017-05-05 22:41:36 -04:00
Ehsan Akhgari
857a788600
Bug 1357107 - Part 1: Move the handling of the permissions.default.image pref to imgLoader.cpp; r=bzbarsky
2017-04-28 00:13:23 -04:00
Marcos Caceres
1641e52c61
Bug 1160200 - APNG can't be used with type switching. r=mcaceres, r=jrmuizel, r=johns
2016-08-09 22:15:00 +02:00
Jonathan Watt
71b02a10b0
Bug 1275229 - Stop using do_CreateInstance("@mozilla.org/image/loader;1") to create gecko internal imgLoader instances. r=tikkel
2016-05-19 13:31:15 +01:00
Sebastian Hengst
d31962bf62
Backed out changeset 68442febc36c (bug 1160200) for almost permafailing added test apng-mime/test.html Android 4.3 API15+ opt. r=backout
2016-04-23 22:33:26 +02:00
David Newton
dd3d2b8a48
Bug 1160200 - APNG can't be used with type switching. r=mcaceres,r=jrmuizel
2016-04-20 23:57:00 +02:00
Seth Fowler
77a10fbf87
Bug 1246851 (Part 1) - Add a new SurfacePipe API for writing to image surfaces in a safe and composable manner. r=njn
2016-02-25 16:21:29 -08:00
Carsten "Tomcat" Book
8a7139f4ab
Backed out 1 changesets (bug 1160200) for causing R2 test failures
...
Backed out changeset b4f64c940524 (bug 1160200)
2015-09-29 11:48:53 +02:00
David Newton
83cd51463d
Bug 1160200 - APNG can't be used with type switching. r=mcaceres, sr=jrmuizel
2015-09-25 11:36:00 +02:00
Seth Fowler
db9b9f8f7d
Bug 1119158 - Retarget OnDataAvailable to a new I/O thread instead of the image decoding thread pool. r=sworkman
2015-01-18 01:27:16 -08:00
Seth Fowler
a32efb9168
Bug 1104622 (Part 1) - Remove DiscardTracker. r=tn
2014-11-27 19:55:57 -08:00
Milan Sreckovic
424e49ad5d
Bug 980036 - Move image prefs to gfxPrefs. r=seth
2014-09-22 17:30:20 -04:00
Seth Fowler
43505cadc2
Bug 1070340 (Part 1) - Add ShutdownTracker to imagelib. r=tn
2014-09-23 15:32:16 -07:00
Bobby Holley
dc3e4bb43f
Bug 913138 - Shut down imagelib at the end of layout shutdown. r=bsmedberg
2014-04-08 15:51:34 -07:00
Seth Fowler
4768b8169b
Bug 764299 (Part 2) - Add a temporary surface cache to imagelib. r=dholbert
2013-10-22 13:37:59 +02:00
Kannan Vijayan
2597ff7afc
Backout 5a0801040b54, 5bedd82346b4, 4d8068fd3271, and bc31e05eddb8 for b2g build breakage. CLOSED TREE.
2013-10-21 14:39:33 -04:00
Seth Fowler
e569dd4665
Bug 764299 (Part 2) - Add a temporary surface cache to imagelib. r=dholbert
2013-10-21 18:10:43 +02:00
Steve Workman
d1e4743da1
Bug 867755 - Support OnDataAvailable and OnStopRequest off main thread for image loading r=seth
2013-09-28 11:28:42 -07:00
Birunthan Mohanathas
4b1e1cda01
Bug 784739 - Switch from NULL to nullptr in image/. r=ehsan
2013-08-23 15:51:00 -04:00
Shih-Chiang Chien
db97075d2b
Bug 882526 - Remove Gecko support for WBMP. r=joe, r=roc
2013-07-22 22:31:24 -04:00
Mina Almasry
98c0a6743c
Bug 582783 - Move windows.h include and undef LoadImage to gfxWindowsSurface.h. r=joe
2013-03-25 17:53:54 -04:00
Shih-Chiang Chien
e1dde469ff
Bug 852053 - Support WBMP on FirefoxOS only. r=joe
2013-03-20 14:03:07 +08:00
Shih-Chiang Chien
8d7a292034
Bug 847310 - WBMP decoder implementation. r=joe
2013-03-08 11:17:29 +08:00
Seth Fowler
28e6401b0b
Bug 822846 - Use nsMimeTypes.h instead of working with literal strings in imagelib. r=joe
2013-01-08 13:40:47 -08:00
Ryan VanderMeulen
fa0b3fe674
Backed out changeset 5244caae8c46 (bug 822846) for Windows build bustage.
2012-12-23 11:45:38 -05:00
Seth Fowler
25a6f5ebee
Bug 822846 - Use nsMimeTypes.h instead of working with literal strings in imagelib. r=joe
2012-12-19 13:33:56 -08:00
Seth Fowler
d74715ff5f
Bug 816374 - Don't export RasterImage from imagelib. r=joe
2012-12-17 18:35:46 -08:00
Ryan VanderMeulen
60b3b24acf
Backed out 4 changesets (bug 815471, bug 821023, bug 816374, bug 816362) for reftest failures.
2012-12-16 21:13:35 -05:00
Seth Fowler
5b2bcad5a9
Bug 816374 - Don't export RasterImage from imagelib. r=joe
2012-12-03 16:22:32 -08:00
Joe Drew
63d79ccca0
Bug 786449 - Add a place to explicitly initialize RasterImage on the main thread at startup. r=jlebar
2012-09-26 11:33:06 -04:00
Ed Morley
a2884969da
Backout 92530b29ac24, 42e659956dc6 & 38277196c099 (bug 486918), d3b69fe15ac3 & b2dba2108722 (bug 786444), e7381ac9e30a (bug 786449) on suspicion of causing Android reftest failures on a CLOSED TREE
2012-09-28 23:00:28 +01:00
Joe Drew
1aa883d6c5
Bug 786449 - Add a place to explicitly initialize RasterImage on the main thread at startup. r=jlebar
2012-09-26 11:33:06 -04:00
Josh Matthews
41711618f6
Bug 722861 - Add privacy information to image requests, and use a separate cache for private requests. r=joe
2012-06-26 00:20:12 -04:00
Josh Matthews
29e7f9cdf0
Back out bug 722861.
2012-08-27 15:31:29 -04:00
Josh Matthews
f12d16d9f9
Bug 722861 - Add privacy information to image requests, and use a separate cache for private requests. r=joe
2012-06-26 00:20:12 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Brian R. Bondy
2ab8e802c2
Bug 745141 - crash in imgRequestProxy::OnDiscard with abort message. r=jlebar
2012-05-08 08:25:08 -04:00
Atul Aggarwal
087e83c8f3
Bug 698263 - Rename mozilla::imagelib namespaces to mozilla::image r=joe
2012-01-06 21:32:27 +05:30
Bobby Holley
ab9ccfcf7a
Bug 128502 - Move imagelib to mozilla/image on a CLOSED TREE. r=joe,brendan
2011-10-17 21:32:45 -07:00