Max Stepin
a46b7f7d0d
Bug 1255497. Change the number of iterations we do for finite length animated gif to match what everyone else does. r=seth
2017-05-12 22:29:12 +02:00
Vedant Sareen
a85a2ad339
Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter
...
Changed |print("enum ID : uint32_t {", file=output)| to |print("enum HistogramID : uint32_t {", file=output)| at line 53 of the file |toolkit/components/telemetry/gen-histogram-enum.py|, and then replaced all the textual occurrences of |Telemetry::ID| to |Telemetry::HistogramID| and |ID| to |HistogramID| in 43 other files.
2017-02-16 00:45:15 +05:30
Phil Ringnalda
34488ac6f3
Backed out 5 changesets (bug 1290292, bug 1290293) for gfx assertions
...
CLOSED TREE
Backed out changeset 652c909b75ad (bug 1290293)
Backed out changeset 90a284ea19e3 (bug 1290292)
Backed out changeset 8401d12fe936 (bug 1290293)
Backed out changeset d87488b69c18 (bug 1290293)
Backed out changeset 7368aa665fae (bug 1290293)
2017-02-13 19:28:45 -08:00
Andrew Osmond
f9e03421a5
Bug 1290293 - Part 2e. Make SurfacePipe users clear unwritten pixels if the image is truncated. r=tnikkel
2016-08-18 09:55:45 -04:00
Andrew Osmond
e23f272174
Bug 1290293 - Part 2c. Make nsGIFDecoder2 use B8G8R8X8 only for unpaletted frames. r=tnikkel
2016-11-03 10:32:21 -04:00
Andrew Osmond
1d2188ddc5
Bug 1303427 - Continue parsing buffered LZW codes in GIFs even if input stream is complete. r=tn
2016-09-19 09:16:28 -04:00
Nicholas Nethercote
b5810a1eb4
Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
...
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.
In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.
> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.
> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");
This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
be true" sense used in assertions.
A common variation on the side-effect-free case is the following.
> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");
2016-09-02 17:12:24 +10:00
Seth Fowler
7dce2e7e42
Bug 1291071 (Part 4) - Clean up Decoder::SpeedHistogram() and related code. r=edwin
2016-08-05 18:50:29 -07:00
Seth Fowler
19ca5240fb
Bug 1292505 (Part 2) - Remove remaining references to Downscaler in the SurfacePipe decoders. r=edwin
2016-08-05 13:44:52 -07:00
Seth Fowler
810adfb9af
Bug 1291059 - Yield in the GIF decoder at the beginning of a new frame, not at the end of the previous frame. r=edwin
2016-08-02 04:10:59 -07:00
Seth Fowler
b3a5b9908b
Bug 1291054 (Part 3) - Rename Decoder::GetSize() to Decoder::Size() to be consistent with the style guide. r=edwin
2016-08-02 04:10:51 -07:00
Seth Fowler
5da6432bcf
Bug 1291054 (Part 2) - Add a Decoder::OutputSize() getter and use it in the decoders. r=edwin
2016-08-02 04:10:49 -07:00
Seth Fowler
06d1ffb4e1
Bug 1288040 (Part 5) - Wrap frame timeout values in a FrameTimeout type that ensures they're normalized. r=edwin
2016-07-20 16:30:28 -07:00
Seth Fowler
0c1f45c050
Bug 1287691 (Part 2) - Yield after each frame in the GIF decoder. r=edwin
2016-07-20 02:30:35 -07:00
Makoto Kato
c4a50472e0
Backed out 4 changesets (bug 1287691) due to Windows build failure
...
MozReview-Commit-ID: KgV3nU9a64F
2016-07-20 11:03:59 +09:00
Seth Fowler
1723c3c618
Bug 1287691 (Part 2) - Yield after each frame in the GIF decoder. r=edwin
2016-07-19 17:15:01 -07:00
Seth Fowler
6ec86767e0
Bug 1287367 - Allow users of StreamingLexer to detect and handle truncation. r=njn
2016-07-18 23:41:20 -07:00
Seth Fowler
8ad86fa89d
Bug 1287246 (Part 1) - Expose LexerResult from the StreamingLexer API and add an explicit Yield type. r=njn
2016-07-18 01:25:37 -07:00
Seth Fowler
533b93be57
Bug 1286165 (Part 2) - Advance decoders' SourceBufferIterator directly in StreamingLexer. r=edwin,njn
2016-07-15 17:48:57 -07:00
Seth Fowler
4605af1534
Bug 1285867 (Part 2) - Don't call Decoder::PostDataError() from Decoder subclasses. r=edwin
2016-07-15 16:41:11 -07:00
Seth Fowler
24cf4ab2a0
Bug 1285865 (Part 6) - Pass a SourceBufferIterator to Decoder::DoDecode(). r=edwin
2016-07-11 12:13:13 -07:00
Seth Fowler
b0ac5667da
Bug 1285865 (Part 5) - Return a Maybe<TerminalState> from Decoder::DoDecode(). r=edwin
2016-07-11 12:13:11 -07:00
Seth Fowler
56b1768feb
Bug 1285865 (Part 4) - Rename Decoder::WriteInternal() to Decoder::DoDecode() and fix its argument types. r=edwin
2016-07-11 12:13:09 -07:00
Mason Chang
b09286b43f
Bug 1282496 - memset unoptimized images with RGBX surface format to 0xFF. r=seth
2016-06-30 18:59:29 -07:00
Daniel Holbert
d48e7feafc
Bug 1282670, part 3: Make several imagelib .cpp files #inclue their corresponding .h file as their very first #include, per Gecko convention. r=seth
...
(In some cases, I've left "ImageLogging.h" being included before the corresponding .h file, because I ran across a warning comment saying that it needs to be included before any IPDL-generated files & anything that includes prlog.h; and it seems possible that Foo.cpp's corresponding Foo.h file could include such headers now or in the future.)
MozReview-Commit-ID: HPvUVj8YuKc
2016-06-30 10:27:03 -07:00
Phil Ringnalda
28003bb5dd
Back out 269a48e67579 (bug 1282496) for Windows gfx crashes and assertion failures
...
CLOSED TREE
2016-06-27 19:13:12 -07:00
Mason Chang
ed08ee3d08
Bug 1282496 - memset unoptimized images with RGBX surface format to 0xFF when using the skia backend. r=seth
2016-06-27 17:45:55 -07:00
Seth Fowler
6636bb9167
Bug 1280712 - Remove redundant memset() of GIF frame data. r=edwin
2016-06-21 20:19:19 -07:00
Seth Fowler
05d03d7100
Bug 1279859 - Correctly skip over extra image sub blocks in the GIF decoder. r=njn
2016-06-20 21:09:29 -07:00
Seth Fowler
d4955bb192
Bug 1204392 - Use StreamingLexer in the GIF decoder. r=njn,seth
2016-06-08 12:17:17 -07:00
Seth Fowler
5b4bf3bf81
(No bug) - Remove unnecessary include in nsGIFDecoder2.cpp. r=me DONTBUILD
2016-06-04 15:28:27 -07:00
Timothy Nikkel
820b75ab56
Bug 1255675. SurfacePipe handles removing the frame rect, so pass the frame rect directly.
...
This is left over from the pre-SurfacePipe code that interacted directly with the Downscaler. It was calculating the size of the surface for the Downscaler to use, and then the Downscaler would handle putting transparent pixels inside that surface (and outside the framerect).
2016-03-13 15:56:00 -07:00
Seth Fowler
e7ef7aff41
Bug 1247152 (Part 2) - Remove even more code from the GIF decoder. r=edwin
2016-03-09 15:39:02 -08:00
Seth Fowler
59b97f061d
Bug 1247152 (Part 1) - Use SurfacePipe in the GIF decoder. r=njn
2016-03-09 15:39:02 -08:00
Chris Peterson
eb658cbc11
Bug 1235297 - Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in image/decoders/. r=tn
...
image/FrameAnimator.cpp:442:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
image/FrameAnimator.cpp:576:7: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
image/decoders/nsGIFDecoder2.cpp:1110:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
image/decoders/nsJPEGDecoder.cpp:418:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
image/decoders/nsJPEGDecoder.cpp:444:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
image/decoders/nsJPEGDecoder.cpp:465:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
image/decoders/nsJPEGDecoder.cpp:537:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-12-24 23:50:32 -07:00
Edwin Flores
a5c2e279e8
Bug 1235605 - Use CheckedInt in Deinterlacer and make its buffer allocation fallible. r=tn
2015-12-30 17:03:24 -05:00
Edwin Flores
eafbfd1e9e
Bug 1229825 - Make GIF deinterlacer respect the frame rect bounds. r=tn
2015-12-29 18:19:27 -05:00
Edwin Flores
697a4aed1d
Bug 1223465 - Clamp GIF frame rects to their screen rects - r=seth
2015-11-25 13:50:13 +00:00
Seth Fowler
bca9ba980d
Bug 1213744 (Part 2) - Clamp the GIF frame rect to the visible rect for DDD and don't decode outside it. r=tn
2015-10-25 13:14:14 -07:00
Seth Fowler
b7be9559fa
Bug 1207378 (Part 2) - Use Downscaler to remove first-frame padding when downscaling GIFs. r=tn
2015-09-26 01:36:23 -07:00
Seth Fowler
c551622a5f
Bug 1207378 (Part 1) - Add support for a frame rect to Downscaler. r=tn
2015-09-26 01:36:19 -07:00
Seth Fowler
afe849ca13
Bug 1146663 (Part 5) - Require that all image decoders support downscale-during-decode. r=tn
2015-09-19 16:21:08 -07:00
Seth Fowler
c01e83bee6
Bug 1194058 (Part 2) - Add downscale-during-decode support for the GIF decoder. r=tn
2015-09-17 15:03:34 -07:00
Seth Fowler
4508b595bb
Bug 1194059 (Part 2) - Always detect IS_ANIMATED during the metadata decode. r=tn
2015-08-14 00:37:13 -07:00
Seth Fowler
5bf7c12087
Bug 1191114 (Part 1) - Always detect HAS_TRANSPARENCY during the metadata decode. r=tn
2015-08-12 10:41:02 -07:00
Seth Fowler
2c5e6d982b
Bug 1187546 - Make it possible to ask image decoders to only decode the first frame. r=tn
2015-07-31 18:10:23 -07:00
Seth Fowler
9e22179872
Bug 1184996 (Part 3) - Replace all remaining references to 'size decodes' with 'metadata decodes'. r=tn
2015-07-22 22:39:54 -07:00
Seth Fowler
54965c6b4b
Bug 1117607 - Make decoders responsible for their own frame allocations. r=tn
2015-07-10 19:26:15 -07:00
Seth Fowler
f850e0b3ba
Bug 1160801 - Treat invalid GIF disposal methods as DisposalMethod::NOT_SPECIFIED. r=jrmuizel
2015-05-14 15:19:39 -07:00
Chris Peterson
97dcca716b
Bug 1143994 - Fix some -Wunreachable-code and -Wswitch warnings in imagelib. r=seth
2015-03-16 21:02:15 -07:00