Граф коммитов

98 Коммитов

Автор SHA1 Сообщение Дата
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 43bbaa0481 Bug 1220021 (part 2) - Add four reftests. r=seth. 2015-11-23 18:20:21 -08:00
Nicholas Nethercote c5432f6a1e Bug 1214072 (part 2) - Implement transparency properly for BMP images. r=seth.
Currently we don't implement transparency at all in BMP images except for an
odd-duck case of BMPs within ICOs.

This patch does the following.

- It implements transparency properly for 16bpp and 32bpp images via bitfield
  masking. (For 32bpp images this also requires handling colors via bitfield
  masking.) The patch maintains the existing BMP-within-ICO transparency
  handling.

- It also reworks BitFields::Value::Set().

  * It now works correctly if the run of 1s goes all the way to bit 31 (the
    old code didn't set mBitWidth).

  * If the mask is 0, will give an mRightShift of 0 (old code gave 32, and
    right-shifting by 32 is dodgy).

  * It's now easier to read.

- It renames transparent.bmp as transparent-if-within-ico.bmp. Ironically
  enough this file currently uses BITFIELDS compression and is WinBMPv5 format,
  which means it contains well-specified alpha data. In order to use it to test
  the hacky BMP-within-ICO transparency scheme the patch changes it to be
  WinBMPv3 format with RGB compression (i.e. no compression). I left the
  now-excess bytes (including the bitfields) in the info header in place
  because that's allowed -- thanks to the start of the pixel data being
  specified by the |dataoffset| field -- they'll just be ignored.

- It tweaks the naming of the relevant gtests and some of their finer details
  to work with the new way of doing things.

This fixes all four remaining failures in bmpsuite.

--HG--
rename : image/test/gtest/transparent.bmp => image/test/gtest/transparent-if-within-ico.bmp
extra : rebase_source : 2f4838d04bbae4fac00cc69e8d75469105a5de3b
2015-10-13 21:20:10 -07:00
Nicholas Nethercote bc8cdf084b Bug 1213613 (part 3) - Fix color-scaling of 16bpp BMP images. r=seth.
This patch implements proper color-scaling, instead of bit-shifting, and uses
it for 16bpp images.

It also cleans up the code relating to color masking in the process, by making
BitFields a proper class and introducing the Value class within it.

This fixes sub-optimal handling of four images in bmpsuite.
2015-10-13 20:01:02 -07:00
Nicholas Nethercote 5c931ac437 Bug 1204394 (part 2) - Add bmpsuite to the BMP reftests. r=seth.
We have 52 passes and 5 known fails. Three of the passes have higher fuzziness
allowances than they should, so really there are 8 files that we need to
improve on.

--HG--
extra : rebase_source : 23738272b38c7d03c90e425e8170fc3fabc4c021
2015-10-08 22:55:28 -07:00
Seth Fowler 3e6e1a075a Bug 1146663 (Part 1) - Remove HQ scaling, which is now dead code. r=tn 2015-09-19 16:20:56 -07:00
Seth Fowler 93cbaca5e0 Bug 1201796 (Part 4) - Add downscale-during-decode support for the ICO decoder. r=tn 2015-09-19 13:34:14 -07:00
Seth Fowler 30373cd6eb Bug 1201796 (Part 1) - Treat ICOs with wrong widths and heights as corrupt. r=tn
--HG--
rename : image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_height.ico => image/test/crashtests/invalid_ico_height.ico
rename : image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_width.ico => image/test/crashtests/invalid_ico_width.ico
2015-09-19 13:34:06 -07:00
Seth Fowler 214922253b Bug 1196066 (Part 1) - Fix bad directory entries in two of our ICO reftests. r=tn 2015-09-18 23:12:24 -07:00
Wes Kocher 08de06967a Backed out 8 changesets (bug 1201796, bug 1196066) for mulet gij(28) failures CLOSED TREE
Backed out changeset 159d5d2946d3 (bug 1201796)
Backed out changeset 958988218976 (bug 1201796)
Backed out changeset 494e7553d641 (bug 1201796)
Backed out changeset d58149411b7d (bug 1201796)
Backed out changeset 35bd769b49f8 (bug 1196066)
Backed out changeset e4f3d4279b4c (bug 1196066)
Backed out changeset ca467297fa07 (bug 1196066)
Backed out changeset b4851ce6637d (bug 1196066)

--HG--
rename : image/test/crashtests/invalid_ico_height.ico => image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_height.ico
rename : image/test/crashtests/invalid_ico_width.ico => image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_width.ico
extra : rebase_source : 5232674f1cf0ef4d7f70568f627547c0151a801f
2015-09-18 13:01:25 -07:00
Seth Fowler b48b5d99b8 Bug 1201796 (Part 4) - Add downscale-during-decode support for the ICO decoder. r=tn 2015-09-18 10:54:40 -07:00
Seth Fowler 2035a81b8d Bug 1201796 (Part 1) - Treat ICOs with wrong widths and heights as corrupt. r=tn
--HG--
rename : image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_height.ico => image/test/crashtests/invalid_ico_height.ico
rename : image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_width.ico => image/test/crashtests/invalid_ico_width.ico
2015-09-18 10:54:32 -07:00
Seth Fowler 9c22e557a2 Bug 1196066 (Part 1) - Fix bad directory entries in two of our ICO reftests. r=tn 2015-09-18 10:54:21 -07:00
Seth Fowler b125dc7714 Bug 1060609 (Part 3) - Add tests that interlaced and non-interlaced PNGs have the same downscaling behavior. r=tn 2015-09-01 14:13:20 -07:00
Gijs Kruitbosch 1aa68e8c0f Bug 1173214, r=seth,bz
--HG--
extra : commitid : 4vG71pjrBIY
2015-08-26 10:24:04 +01:00
Justin Wood b2d2dffd0c Bug 1195499 - Adjust fuzz and skips for win10. r=Bas
--HG--
extra : rebase_source : ad917963397787a137226d44c19b9669cca89430
2015-08-18 13:19:05 -04:00
Seth Fowler b508f20945 Bug 1182533 - Sync decode ico-bmp-corrupted images before loading them in the <img> element. r=tn 2015-07-10 16:36:56 -07:00
Seth Fowler eb28fe0afe Bug 1163856 (Part 2) - Fix tests that depended on image load event timing. r=tn 2015-06-30 02:38:01 -07:00
Phil Ringnalda 64bb0c3553 Back out 2 changesets (bug 1163856) for Windows !mSyncLoad assertion failures
CLOSED TREE

Backed out changeset 62c1c616f21c (bug 1163856)
Backed out changeset 04239448fe0b (bug 1163856)
2015-06-25 19:57:00 -07:00
Seth Fowler 028ff94473 Bug 1163856 (Part 2) - Fix tests that depended on image load event timing. r=tn 2015-06-25 17:10:05 -07:00
Seth Fowler 97f0c7ad1e Bug 1169680 - Don't merge image cache entries for blob URIs with different refs. r=tn
--HG--
extra : rebase_source : 20717fbc31f1116d96d5cf179e4f83e85719ff8d
2015-06-05 01:52:06 -07:00
Alexandre Lissy c00c1b9f7a Bug 1039834 - Fix PNG suite reftest on mulet. r=dbaron 2015-03-04 10:12:00 +01:00
Seth Fowler 6600d3ff6a Bug 1120144 - Disable test_bug641198.html until it can be rewritten. r=me
--HG--
extra : rebase_source : 204ab661ec2bccc52aa82a00b912d9914f039560
2015-02-05 18:03:19 -08:00
L. David Baron 13ce318418 Bug 1122297 - Adjust existing Mac OS X reftest failure annotations that also show up on 10.10. r=philor
This adjusts existing reftest annotations for tests that fail on 10.8
that are showing up as failing on 10.10 as well to be marked using >=
version tests rather than == version tests.
2015-01-15 18:00:49 -08:00
Seth Fowler c416f00994 Bug 1079627 (Part 7) - Disable some questionable tests. r=tn 2015-01-15 15:11:36 -08:00
L. David Baron eb5285b396 Bug 1121327 patch 2 - Update reftest and crashtest manifests for new OSX variable in condition sandbox. r=ted.mielczarek 2015-01-15 15:07:50 -08:00
Ryan VanderMeulen 82e3ce2e32 No bug - Adjust some Android reftest expectations now that they're passing again. r=gbrown, a=test-only
These tests were originally marked as failing on 2.3 so that Android 2.3 could be enabled in production. Something today made them start passing again, so remove the failing annotations.
2015-01-14 13:46:20 -05:00
Tom Schuster 967d0d250a Backout changeset b4ebefd0f7e3:a8044fd506db Bug 1117607, Bug 1118087, Bug 1118092, Bug 1118105, Bug 1030372, Bug 1079627 on CLOSED TREE 2015-01-11 20:43:32 +01:00
Seth Fowler 883643f8ab Bug 1079627 - Additonal commit to allow push on a CLOSED TREE since these patches should fix the oranges 2015-01-11 05:43:06 -08:00
Seth Fowler 08df7af950 Bug 1079627 (Part 3) - Support multiple decoders for a single RasterImage. r=tn 2015-01-11 05:34:20 -08:00
Seth Fowler 13ecf8f345 Bug 1117607 - Make decoders responsible for their own frame allocations. r=tn 2015-01-10 18:47:44 -08:00
Matt Woodrow 492e380aa7 Bug 1070722 - Fix reftest annotation for OSX 10.6 2014-09-30 15:26:40 +13:00
Matt Woodrow fcd996d937 Bug 1070722 - Use the imagelib high quality downscaler on OSX instead of the quartz one. r=jrmuizel 2014-09-26 15:05:14 -04:00
Jonathan Watt 628963b5f2 Bug 1073984 - Make SVG geometry painting use a Moz2D Path object directly. r=longsonr 2014-09-29 14:26:15 +01:00
Seth Fowler e3b53953b5 Bug 1060200 (Part 4) - Store HQ scaled frames in SurfaceCache and remove ScaleRequest and ScaleResult. r=tn 2014-09-19 14:53:29 -07:00
Michael Wu 4570bdad8c Bug 1068230 - Don't use the gfxContext transform in intermediate surface, r=seth 2014-09-18 15:53:02 -04:00
Michael Wu 6188a42531 Bug 1062886 - Fix one color padded drawing path, r=seth 2014-09-10 16:04:28 -04:00
L. David Baron 4ffdd3ca3e Bug 1043560 followup: Annotate reliable reftest failure on B2G following merge of bug 1043560 with https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?changeset=09ee525ce99d (probably bug 974242). 2014-08-23 11:09:55 -07:00
L. David Baron 56ed276b83 Bug 1043560 followup: Annotate different fuzziness on one test for d2d since it is intermittenly more fuzzy on accelerated win7 reftests. 2014-08-23 11:03:21 -07:00
Seth Fowler 4cd9e3e8e6 Bug 1043560 - Refactor the imgIContainer::Draw API. r=tn,dholbert,jwatt,mwu,mattwoodrow,roc sr=jrmuizel
--HG--
extra : rebase_source : b5ed02cb200ece12a07328613dca217e9d975703
2014-08-22 13:12:38 -07:00
Seth Fowler ae2acbe31f Bug 942364 - Add reftests. r=dholbert 2014-08-12 14:05:29 -07:00
Seth Fowler 7ebf395297 Bug 925611 - Add reftests. r=tn 2014-08-12 14:05:27 -07:00
Jeff Muizelaar 3ae334f283 Bug 1036633. Add test of delta codes in bmp images.
Looking at the code coverage information reveals that this is currently untested.

--HG--
extra : rebase_source : 31063dad0af0694d2ece75942a23cbfd3a60a6b1
2014-07-09 17:22:04 -04:00
CJKu 9691cf3136 Bug 1000722 - Rollback close reftest in bug 981477. r=ahal 2014-06-24 10:20:00 -04:00
Vincent Chen c53b5f77a8 Bug 981477 - Disable B2G emulator reftests that fail oop, r=ahal 2014-05-23 15:56:15 -04:00
Daniel Holbert 4296ce21ad Bug 1006123, part 2: Add reftest for high-quality image downscaling. r=seth 2014-05-22 09:44:05 -07:00
Geoff Brown 8b4092834b Bug 967704 - Update reftest manifests for Android 2.3; r=me 2014-04-09 08:38:45 -06:00
Jeff Muizelaar 10643c16e5 Bug 854795. Add support for -moz-samplesize. r=seth
-moz-samplesize allows decoding at a lower resolution.
This is valuable for saving memory when we know that
we don't need a large version of the image.

--HG--
extra : rebase_source : 0373c23bd4a8b5963329ea1ccf13f075c1264909
2014-02-28 16:43:14 -05:00
Seth Fowler 77e020a57f Bug 936720 (Part 2) - Remove reftests for animated image operators. r=jdm
--HG--
extra : rebase_source : 0d0f566a578644e75b30a4ce2afe93d71e7fec3d
2013-11-22 16:33:03 -08:00
Seth Fowler 004961a8fc Bug 936720 (Part 1) - Add a new mochitest for animated image operators. r=tn
--HG--
extra : rebase_source : f3db726b4deffa7304f0cf0123d26bba680bdcfd
2013-11-18 13:48:48 -08:00