Bogdan Postelnicu
3627cdff1f
Bug 1228314 - added static_cast<int64> in order to avoid overflow. r=seth
...
MozReview-Commit-ID: KY3qpIlzE5K
--HG--
extra : rebase_source : a716abcb496c9923318f58d21250b6c13182add0
2016-01-18 17:23:23 +02:00
Seth Fowler
618f960cdd
Bug 1246851 (Part 4) - Add a test suite for SurfacePipes and SurfaceFilters. r=njn
2016-02-25 16:21:29 -08:00
Seth Fowler
d58e9fda35
Bug 1246851 (Part 3) - Add a factory for constructing SurfacePipes. r=njn
2016-02-25 16:21:29 -08:00
Seth Fowler
c116948476
Bug 1246851 (Part 2) - Add SurfaceFilter implementations for basic surface output operations. r=njn
2016-02-25 16:21:29 -08:00
Seth Fowler
b1ec50b23f
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
Timothy Nikkel
c29791aa23
Bug 1249576 - If the first frame of an APNG doesn't cover the whole image mark the image as transparent. r=edwin
...
In (non-animated) PNGs the image data is contained in IDAT chunks. In APNGs there are IDAT chunks, which contain the default image, and fDAT chunks, which contain frames of the animation. The default image is sometimes part of the animation (as the first frame), and sometimes not (displayed only by non-APNG aware viewers).
The default image must have the same size as in the PNG header chunk. But the fDAT images can be any (smaller) size. So the first frame of a PNG is allowed to be smaller than the whole image size so long as we are in an APNG and the first frame is from an fDAT chunk, not an IDAT chunk.
We post transparency if we encounter this case because we don't draw into those pixels on at least the first frame.
2016-02-23 20:22:00 +01:00
Timothy Nikkel
34fd9a4a11
Bug 1120141. Don't use surface with alpha for first frames of all pngs. r=edwin
...
It was a hack, not needed anymore.
2016-02-24 09:56:03 -06:00
Nicholas Nethercote
b295b3e288
Bug 1249550 (part 2) - Add a test. r=tn.
...
--HG--
rename : image/test/reftest/downscaling/downscale-ff.html => image/test/reftest/downscaling/downscale-16px.html
extra : rebase_source : 930c391d986d92bc78eb9f97e44b16aa5198beaa
2016-02-23 10:58:05 +11:00
Nicholas Nethercote
034cfd65bb
Bug 1249550 (part 1) - Flip BMPs with negative height when downscaling. r=tn.
...
--HG--
extra : rebase_source : f0eef7233b52ec8e1e368d96b5776ca70e5eb328
2016-02-22 13:38:58 +11:00
Mason Chang
b4c228baec
Bug 1246213 - Skia reftest fuzzing for Skia content on OS X. r=jmuizelaar
2016-02-16 09:07:52 -08:00
Timothy Nikkel
fa7da9c935
Bug 1242093 - Fix assertion in Downscaler::ClearRow. r=njn
...
The starting column can be the last column, and we handle that correctly.
Also split function into ClearRow and ClearRestOfRow.
2016-02-16 08:04:57 +01:00
ISHIKAWA, Chiaki
be2b50a7f8
Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
...
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check
- the outdated 0666 octal constant is still parsed correctly,
- the outdated 0666 octal constant raises syntax error flag
in strict mode, etc.
So leave them alone.
2016-02-15 08:57:00 +01:00
Timothy Nikkel
2f41382fcf
Bug 1240629. Add reftest.
2016-02-12 16:58:34 -06:00
Timothy Nikkel
d4c4df334e
Bug 1240629. Don't buffer image file data that we are never going to look at in the gap between the header and the pixel data for BMP files. r=njn
...
The length of the gap is computed from the BMP file header, so in a malformed BMP we could needlessly make our input file buffer huge for no reason.
2016-02-12 16:58:34 -06:00
Aidin Gharibnavaz
686438c658
Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
2016-02-10 08:23:00 +01:00
Nicholas Nethercote
774871bbdd
Bug 1238558 (part 2) - Add a test. r=tnikkel.
...
--HG--
extra : rebase_source : f3d89f88873920e6b2c8a4d0c403bf84a5e52d42
2016-02-10 09:55:37 +11:00
Nicholas Nethercote
8c0fc6309a
Bug 1238558 (part 1) - Add Decoder::BeforeFinishInternal(). r=tnikkel.
...
--HG--
extra : rebase_source : 613a2ce0931b8b6c67d93e4d55e965193bbb55d0
2016-01-27 16:15:06 -08:00
Carsten "Tomcat" Book
5b358688b7
Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures
...
--HG--
extra : rebase_source : fb6fd434c8e3f4b5fa53ea645a54c07cab207894
2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz
69cf7e035f
Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
...
--HG--
extra : rebase_source : 3c6bba6613a14e48239d302bdd0f7fe2e322265d
2016-02-07 10:56:00 +01:00
Birunthan Mohanathas
d7371d07d0
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Timothy Nikkel
cf078d87e6
Bug 1224979. Check if we compute usable filters for the downscaler, and if not put the downscaler in error state so it's not used. r=edwin
2016-01-28 17:30:01 -06:00
Chris Peterson
c5cfbed605
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
--HG--
extra : rebase_source : ec1da93105ef06d156d9d60ae8950d04f3197e38
2015-12-24 23:50:32 -07:00
Timothy Nikkel
5b78f1768d
Bug 1241729. Add crashtest.
2016-01-27 16:19:34 -06:00
Timothy Nikkel
7a0d958c9f
Bug 1241728. Add crashtest.
2016-01-27 16:19:34 -06:00
Timothy Nikkel
6f2b0a2d2b
Bug 1241728. Limit the size of images that we will downscale from to 1048576 pixels. r=edwin
...
This avoids spending too much cpu/memory downscaling absolutely huge images.
2016-01-27 16:19:33 -06:00
Daniel Holbert
7d7a7ec332
Bug 1242778: Add MOZ_COUNT_CTOR & MOZ_COUNT_DTOR calls to track leaks of imagelib's FrameAnimator class. r=tn
...
Also add crashtest with a corrupt animated PNG image that causes a leak to be reported (thanks to these MOZ_COUNT calls). This leak is fixed by the patch on separate bug 1237709
.
2016-01-26 11:08:26 -08:00
Jeff Muizelaar
1a1b1c6b90
Bug 1237709: During RasterImage error-handling cleanup, set UniquePtr mAnim to null instead of using reset(), to avoid leaking. r=dholbert
2016-01-26 11:08:19 -08:00
David Rajchenbach-Teller
583ca7286d
Bug 1224374
- Profiler labels for the top 26-100 chrome hangs;r=BenWa
...
--HG--
extra : rebase_source : 39e94507c0288863e495322a6899ff009840870d
2016-01-15 11:38:03 +01:00
Edwin Flores
4623e471a3
Bug 1207958 - Fix heuristic for choosing which ICO sub-image to render - r=tn
2016-01-20 11:00:12 +00:00
Sebastian Hengst
d8d4a2d1a5
Backed out 2 changesets (bug 1224374
) for Windows bustage. r=bustage on a CLOSED TREE
...
Backed out changeset 5f458e6e4997 (bug 1224374
)
Backed out changeset 0dc02cb0b604 (bug 1224374
)
2016-01-19 21:30:41 +01:00
David Rajchenbach-Teller
2d53758d08
Bug 1224374
- Profiler labels for the top 26-100 chrome hangs;r=BenWa
...
--HG--
extra : rebase_source : 51d39d6f88bf58ccb29f5897c3dbbe71007ee842
2016-01-15 11:38:03 +01:00
Nicholas Nethercote
cc5a3d081f
Bug 1238551 (part 2) - Add a test. r=tn.
...
--HG--
extra : rebase_source : f44da0e9d84eb2ba88019a1ab857c88fe76ce0a6
2016-01-17 21:13:32 -08:00
Nicholas Nethercote
f28cd689c3
Bug 1238551 (part 1) - Reject BITMAPV3INFOHEADER BMP images. r=tn.
...
This is an obscure BMP variant that's not worth supporting.
--HG--
extra : rebase_source : d4f8180a3e7700490daf4d07685a853c4f122c23
2016-01-17 21:12:17 -08:00
Jan de Mooij
3c3f394c55
Bug 1237201 part 3 - Handle Vector OOM in StreamingLexer. r=njn
2016-01-14 15:19:21 +01:00
Timothy Nikkel
e5e2a31836
Bug 1224200. Allow downscaler to get (and ignore) new input lines after it has finished producing all output lines. r=milan
2016-01-13 17:16:32 -06:00
Nicholas Nethercote
02921e7c85
Bug 1237171 - Improve a case where ICO and BMP files disagree on an image size. r=tn.
...
--HG--
extra : rebase_source : 80701833249881c3022309f6237a3084b61b1881
2016-01-07 16:18:22 -08:00
Steve Singer
fe85f2a810
Bug 1235859 - Add FrameSize to non-skia downscaler. r=edwin
2015-12-30 14:46:54 -05:00
Edwin Flores
cde8e15ecd
Bug 1235605 - Use CheckedInt in Deinterlacer and make its buffer allocation fallible. r=tn
2015-12-30 17:03:24 -05:00
Edwin Flores
3c1a9580ee
Bug 1229825 - Make GIF deinterlacer respect the frame rect bounds. r=tn
2015-12-29 18:19:27 -05:00
Morris Tseng
ef261c0b38
Bug 1215438 - Part 4: Rename CairoImage to SourceSurfaceImage. r=roc
...
--HG--
extra : commitid : H9H2n8GsBOK
2015-12-18 14:52:16 +08:00
Christoph Kerschbaumer
972c2231e2
Bug 1229889 - Convert JS callsites to use asyncOpen2 within image/ (r=sicking)
2015-12-06 20:57:08 -08:00
Wes Kocher
d2615415f5
Backed out 4 changesets (bug 1230221, bug 1230220, bug 1229890) for m-e10s(2) permafails in test_window_open_close.html CLOSED TREE
...
Backed out changeset a1cd28ddbfa2 (bug 1230221)
Backed out changeset 7e89f5020ac7 (bug 1230220)
Backed out changeset 91f6e72fa9f4 (bug 1229890)
Backed out changeset 7e717a810420 (bug 1229890)
--HG--
extra : commitid : BinvCloSNFx
extra : amend_source : 94dfb9ebf66c6e73b1b407e93d8475724d2ae7a2
2015-12-04 15:58:40 -08:00
Christoph Kerschbaumer
249b3fc0cf
Bug 1229890 - Convert JS callsites to use asyncOpen2 within image/ (r=sicking)
2015-12-04 09:39:05 -08:00
Christoph Kerschbaumer
413a60a063
Bug 1225641 - Change default security flags within NetUtil.newChannel (r=sicking)
2015-11-17 17:35:30 -08:00
Edwin Flores
ce990e88c7
Bug 1223465 - Clamp GIF frame rects to their screen rects - r=seth
2015-11-25 13:50:13 +00:00
Edwin Flores
31b349fea0
Bug 1224100 - Initialize row buffer to 0 in Downscaler - r=seth
2015-11-24 15:05:01 +00:00
Nicholas Nethercote
43bbaa0481
Bug 1220021 (part 2) - Add four reftests. r=seth.
2015-11-23 18:20:21 -08:00
Nicholas Nethercote
eeb418d47f
Bug 1220021 (part 1) - Don't treat 0RGB ICO files as transparent. r=seth.
...
This approach is much the same as the one we had before bug 1062066 caused the
regression.
2015-11-23 15:32:39 -08:00