16 Commits

Author SHA1 Message Date
roytam1 27926d796f import changes from `dev' branch of rmottola/Arctic-Fox:
- fix assertion (528f0d0b2)
- fix assertion (8ca4607ca)
- fix broken assertions (8c64c1865)
- fix debug code (6e37f6aa7)
- remove broken assertion (090f9987d)
- fix assertion according to bug Bug 1328251 (b3835e0c5)
- fix debug code (f7a2841e6)
- Bug 1226241 - Use a #define instead of a magic number for self-hosted function name accesses. r=jandem (01e2ec474)
-  Bug 1235656 - Part 1: Set canonical name in self-hosted builtins. r=till (43cbd7cb9)
- Bug 912701 - When removing Unicode extension sequences from a locale, ignore similar syntax that might be found in a privateuse component. r=abargull (1524a8b48)
- remove broken assert (a93490758)
- remove broken assert (0ddc7e143)
- fix missing bracket (c4f524729)
- Bug 1179924 - Create a more modern JS object holder for cross-thread references to JS objects. r=smaug (0804d24cf)
2021-10-19 09:47:04 +08:00
roytam1 13934d9866 import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1184996 (Part 1) - Create decoders with a DecoderFactory. r=tn (dacf21ed2)
- Bug 1184996 (Part 2) - Clean up RasterImage's decoding API. r=tn (c127af0b3)
- Bug 1184996 (Part 3) - Replace all remaining references to 'size decodes' with 'metadata decodes'. r=tn (3744e5df4)
- Bug 1184996 (Part 4) - Forbid instantiation of decoders except via DecoderFactory. r=tn (588d56d84)
- No bug - Remove extra printf left over from bug 1127618. r=smaug (b02f7bfe1)
- Bug 1187386 (Part 1) - Make most decoder state private. r=tn (328dbc605)
- Bug 1187386 (Part 2) - Rework decoder code to avoid calling Decode::GetImage(). r=tn (9a94096f9)
- Bug 1187386 (Part 3) - Don't destroy Decoder::mImage if Decoder::mImage is null. r=tn (cbb6738cd)
- Bug 1187386 (Part 4) - Make imgFrame::SetOptimizable() callable from off-main-thread. r=tn (f03478b28)
- Bug 1187386 (Part 5) - Merge Decoder::SetSizeOnImage() into ImageMetadata::SetOnImage(). r=tn (8afb5d4a3)
- Bug 1033090 - Truncate a large URI in the user message about it. r=seth (7bd4b447b)
- Bug 1187386 (Part 6) - Merge Decoder::Finish() and RasterImage::OnDecodingComplete() into RasterImage::FinalizeDecoder(). r=tn (f342dd5db)
- Bug 1181863 (Part 1) - Add support for reading from nsIInputStreams directly to SourceBuffer. r=tn (74748dad9)
- Bug 1181863 (Part 2) - Add ImageOps::DecodeToSurface() to allow image decoding without involving any main-thread-only objects. r=tn (25b86eb50)
- Bug 1181863 (Part 3) - Add tests for DecodeToSurface(). r=tn (9506eb2f6)
-  Bug 1181863 - Part 4: Fix the build bustage (aee05bdc9)
- Bug 1187546 - Make it possible to ask image decoders to only decode the first frame. r=tn (1beeeefb6)
- Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan (ee75fe3b5)
2021-09-09 09:51:21 +08:00
roytam1 877b16186b import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1157954 - Report each surface in the ImageLib SurfaceCache individually in about:memory. r=dholbert (3810a2b1f)
- Bug 1139641 - Return more information from SurfaceCache::Lookup and SurfaceCache::LookupBestMatch. r=dholbert (fdd62b01d)
- Bug 1177615 - Rip everything related to FLAG_DECODE_STARTED out of ImageLib. r=tn (818a77ac1)
- Bug 1153253 - move nsImageBoxFrame::mRequestRegistered to pack better with other members; r=dholbert (fe26ff0ce)
- Bug 1177604 - Stop delaying the load event for XUL images until the image is decoded. r=tn (6c0100f5a)
- Bug 1180931 (Part 1) - Allow sync size decoding for single core devices. r=tn (62eae65e3)
- Bug 1180931 (Part 2) - Allow sync size decoding for transient (i.e. multipart) images. r=tn (537dea273)
- Bug 1165009 - Bail in RasterImage::OnAddedFrame if we hit an error during decoding. r=tn (e9a85bf7d)
- Bug 1171356 - On B2G, retry image decodes that fail because allocation of the first frame failed. r=tn (06e712f65)
- Bug 1151166 - Fix two Coverity warnings in nsPNGDecoder.cpp. r=jrmuizel (848f4f0c2)
- Bug 857040 - Warn on bad CRC instead of error exit. r=joe (74a6438ab)
- Bug 1117607 - Make decoders responsible for their own frame allocations. r=tn (d224b33a8)
- Bug 1178274 - Don't enable decode-only-on-draw if the APZ pref is true but e10s is disabled. r=dvander (76ca02965)
- Bug 1177323 - disable decode-only-on-draw preference. r=seth (b6ac4e9b0)
- Bug 1183836 - Remove support for decode-on-draw-only. r=tn (af0b79370)
- Bug 1183852 - Only mark surfaces as used in the SurfaceCache if a caller requested exactly that surface. r=dholbert (e8d94d193)
- Bug 1176124 (Part 1) - Add a MatchType enum to LookupResult to let Lookup*() return more detailed information. r=dholbert (b3b7b01c0)
- Bug 1176124 (Part 2) - Add placeholder support to the SurfaceCache so we can avoid launching redundant decoders. r=dholbert (6fa4cae4d)
- Bug 1185582 - Back out bug 1171356, a hack to retry image decoding which is now useless. r=tn (0bac6a812)
- Bug 1155332 - If we don't have enough memory to fully decode an image, discard it immediately. r=tn (2adc2f8ea)
- Bug 1185592 (Part 1) - Remove obsolete logging macros. r=baku (b1e98c8a8)
- Bug 1185592 (Part 2) - Make RasterImage store the decoder type instead of the MIME type. r=baku (abce7fd06)
- Bug 1186667 - Correctly report IMAGE_DECODE_COUNT and IMAGE_MAX_DECODE_COUNT telemetry for only non-size decodes. r=tn (97bfbbc82)
- make WEBPDecoder comply Bug 1117607 - Make decoders responsible for their own frame allocation (03866748e)
- make JXR decoder crudely compliant to 1117607 and make it allocate its frame - can probably be improved (b804d6f67)
2021-09-07 17:25:13 +08:00
roytam1 3ea1cc0dd0 import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj (034b6056f)
- Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj (38739377e)
- Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj (867725f77)
- Bug 1165515 - Part 7: Convert PR_LOG_DEBUG + 1 to PR_LOG_VERBOSE. rs=froydnj (afe55d0b8)
- Bug 1165515 - Part 8: Convert log level 6 to PR_LOG_VERBOSE. r=jesup (d01127f2c)
- Bug 1165515 - Part 9: Remove instances of using numeric log levels 15. rs=froydnj (2ff8b0056)
- Bug 1165515 - Part 10: Convert mtransport/logging.h to use PR_LOG levels. r=ekr (a0334c607)
- Bug 1165515 - Part 11: Align CSFLogLevel with PR_LOG levels. r=jesup (ca57ae88a)
- Bug 1165515 - Part 12: Convert nsPluginLogging to use PR_LOG levels. r=bsmedberg (1f3226ca8)
- Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj (96db7f2e9)
- Bug 1165515 - Part 14: Undef PR_LOG macros when using mozilla/Logging.h. r=froydnj (81d9dc8e5)
- fix some bustage after Bug 1165515 - Part 14, stuff missed in part 13 (80c83c78d)
- Bug 1165515 - Part 15: Reduce log level of WebRTC during testing. r=jesup (dda33e173)
2021-03-01 12:01:35 +08:00
roytam1 53ea38ac75 import change from rmottola/Arctic-Fox:
- Bug 1148903 - Allow control characters to be rendered by user fonts. (679bff6bf)
- initialize webp with different mode depending on endianness (part 2) (cf2429214)
2019-05-31 20:49:13 +08:00
roytam1 44d5f1a6a9 import change from rmottola/Arctic-Fox:
- initialize webp with different mode depending on endianness (c47ba6f6e)
- pointer style (09a5f12ee)
- Bug 1139983 - Fail the alloc if the nursery is full in NoGC (a85408eef)
- Bug 1135963. Allow JS_InitializePropertiesFromCompatibleNativeObject to deal with objects that have different prototypes. (ec8d1799b)
- Bug 1066233 - Part 1: Parser suppoert for ES6 ClassExpressions. (04e536bb6)
- Bug 1066233 - Part 2: Emitter support for ES6 ClassExpressions. (7e141d412)
- Bug 1066233 - Part 3: Reflect.parse support for ES6 ClassExpressions. (30595e6df)
- Bug 1066233 - Followup: Address a forgotten review comment. (836b26f59)
- Bug 1066233 - Tests. (5df23d2e6)
- Bug 1143106 - Fix construction of singleton objects during parsing when unboxed objects are in use (1749494c6)
2019-05-21 11:02:01 +08:00
rhinoduck 361d6b8e76 Simplify libwebp usage in nsWEBPDecoder 2018-07-25 06:58:52 +08:00
rhinoduck cf532575c1 Clean up in nsWEBPDecoder a bit
Remove unneeded headers; make use of the override keyword; rename one
variable to make its meaning clearer; trim a few stray trailing spaces.
2018-07-25 06:58:50 +08:00
rhinoduck 3683f6dc1c Fix invalidation rect in nsWEBPDecoder
The last argument to nsIntRect's constructor should be height, not y2.
2018-07-25 06:58:48 +08:00
rhinoduck eef7695088 Fix memory leak in nsWEBPDecoder
FinishInternal() won't get called if an error has been posted before,
so the libwebp cleanup calls need to be in a different place; like the
destructor.
2018-07-25 06:58:45 +08:00
rhinoduck 0f37da4f2f Fix posting order in nsWEBPDecoder
As per CheckProgressConsistency() in ProgressTracker.cpp, PostSize()
should come before PostHasTransparency().
2018-07-25 06:58:44 +08:00
Pale Moon 5011f756e1 Properly support transparent WebP images with the new decoder implementation. 2018-07-25 00:57:38 +08:00
Pale Moon 1f39ab05ee Remove unnecessary frame allocations for WebP. 2018-07-25 00:57:35 +08:00
wolfbeast 97ff398f18 Get rid of non functional pointer juggling and replace it with a working data conversion.
This resolves #489.
2018-07-25 00:55:33 +08:00
wolfbeast 915a8f37a7 Use new type frame allocation.
Remove decoder-internal mImageData (let Decoder handle that!)
Decoding works now, but data transfer from mData to mImageData is still wrong.
2018-07-25 00:55:31 +08:00
wolfbeast b8cabbc735 Base import of Tycho-libwebp-work branch 2018-07-25 00:55:28 +08:00