Commit Graph

384 Commits

Author SHA1 Message Date
Glenn Randers-Pehrson
d15c56cd63 Bug 1072340 - Clean up PNG codecs in image/encoders,decoders. r=jmuizelaar
--HG--
extra : rebase_source : e8789fd34910ae510483034a769e77e70e644198
2014-09-24 17:38:00 -04:00
Christoph Kerschbaumer
1a3d83a58a Bug 1073282 - Proxy release of mLoadInfo in cannel dtors (r=jduell) 2014-09-29 08:48:11 -07:00
Seth Fowler
1f199f4294 Back out bug 1057904, bug 1060869, bug 923302 for bustage
--HG--
extra : rebase_source : fe24318671f3fd9cccb822c65a9581f09612d8c6
2014-10-01 17:33:49 -07:00
Seth Fowler
96fc1b7eaf Bug 1060869 (Part 2) - Store the first frame of a RasterImage in the SurfaceCache. r=tn
--HG--
extra : rebase_source : a342c3212d1ce3dcc69be11517abea3d88cad217
2014-10-01 17:16:41 -07:00
Benoit Girard
10f58e6383 Bug 1063084 - BMP with compression can be transparent. r=seth 2014-09-04 16:08:33 -04:00
Anuj Agarwal
d92a127e8d Bug 1028147 - Privatize public destructor of image::Decoder. r=seth 2014-09-09 19:47:02 -07:00
Ehsan Akhgari
4dcaff616a Bug 1061047 - Fix some bad implicit constructors in imagelib; r=jrmuizel 2014-09-02 12:20:24 -04:00
Nathan Froyd
26a85af913 Bug 1058678 - remove unused variable in EXIF.cpp; r=seth 2014-08-26 11:34:56 -04:00
Glenn Randers-Pehrson
b813184aa2 Bug 1021713 - Update in-tree libpng to version 1.6.13. r=jmuizelaar 2014-08-22 07:11:00 -04:00
Jim Chen
67cb28f899 Bug 1056941 - Fix dangerous destructors in Fennec code; r=blassey 2014-08-26 15:07:59 -04:00
Seth Fowler
07c36a4e0f Bug 1054076 - Make imgFrame reference counted. r=tn 2014-08-22 13:49:54 -07:00
Trevor Saunders
86b7aff8fc bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj 2014-08-05 13:33:55 -04:00
Birunthan Mohanathas
1309100133 Bug 1049997 - Separate statements declaring multiple pointers into separate statements. r=froydnj 2014-08-08 07:04:45 -07:00
Nathan Froyd
9ea6c585f8 Bug 1042878 - part 2 - move MOZ_CAIRO_CFLAGS et al additions to C*FLAGS into moz.build; r=glandium 2014-07-24 11:55:33 -04:00
Mike Hommey
b99bba5c3f Bug 1041864 - Remove LIBRARY_NAMEs that aren't used. r=mshal 2014-07-23 08:39:56 +09:00
Mike Hommey
d10b15b035 Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
Walter Litwinczyk
a9d8ce8c70 Bug 1024226 - Fix leak of |buf| in nsIconChannel.cpp. r=jrmuizel 2014-07-17 10:51:50 -07:00
Tom Schuster
76668775e2 Bug 1041311 - Fix Qt compilation. r=romaxa 2014-07-20 12:55:00 -04:00
Ehsan Akhgari
bc0f0506f5 Bug 1039838 - Give the Windows nsIconChannel a private destructor; r=bjacob
--HG--
extra : rebase_source : 6481a2f0b48496a1f36937ec266bfec0e1161105
2014-07-17 16:41:41 -04:00
Boris Zbarsky
e8aa2f7514 Bug 965413 part 3. Add a .loadInfo property to channels. r=mcmanus 2014-07-10 02:56:36 -04:00
Benoit Jacob
6bd0bb7f17 Bug 1028588 - Fix dangerous public destructors of Mac-specific reference-counted classes - r=mstange 2014-07-06 11:25:31 -04:00
Walter Litwinczyk
c99db891c9 Bug 1024803 - Added comments and asserts to nsBMPDecoder to make it clearer that an overflow is not possible. r=milan 2014-07-03 09:56:11 -07:00
Benoit Jacob
2d78cefb06 Bug 1028588 - Fix dangerous public destructors in image/ - r=jrmuizel 2014-06-23 14:49:08 -04:00
Milan Sreckovic
6987624055 Bug 1027093 - Rename int32_t mCurrentFrame in nsGIFDecoder2 to avoid mixups with parent class' imgFrame* mCurrentFrame. r=jmuizelaar 2014-06-18 10:54:59 -04:00
Birunthan Mohanathas
f475f7189b Bug 1026535 - Fix mismatched class/struct tags. r=ehsan 2014-06-18 17:57:51 -07:00
Michael Wu
82821675ed Bug 994081 - [2/3] Convert imgFrame to SourceSurfaces, r=seth 2014-04-19 21:28:38 -04:00
Robert O'Callahan
9170085906 Bug 1015664. Part 1: Remove NS_HIDDEN_() usage. r=bsmedberg 2014-06-03 00:08:21 +12:00
Neil Rashbrook
9cfd58c16f Bug 869836 - Part 9a: Use AssignLiteral(MOZ_UTF16(...)) instead of Assign(NS_LITERAL_STRING(...)). r=ehsan
Relading with correct bug number so DONTBUILD.

--HG--
extra : amend_source : 6e05de7729c27761564124212b7d4cbe3318e482
2014-05-26 21:54:10 +03:00
Birunthan Mohanathas
f3421c776b Backout 8b8bbe7aa1cc due to wrong bug number 2014-05-27 14:42:13 +03:00
Neil Rashbrook
12b4869c02 Bug 995730 - Part 9a: Use AssignLiteral(MOZ_UTF16(...)) instead of Assign(NS_LITERAL_STRING(...)). r=ehsan
--HG--
extra : rebase_source : d2d3d611c06a2a7ec930fb11576d7c8335c0a6e2
2014-05-26 21:54:10 +03:00
Birunthan Mohanathas
6f68094e30 Bug 869836 - Part 9: Use AssignLiteral instead of Assign(NS_LITERAL_STRING(...)). r=ehsan 2014-05-22 06:48:52 +03:00
Birunthan Mohanathas
5d51a7d58f Bug 869836 - Part 1: Use EqualsLiteral instead of == NS_LITERAL_STRING(...). r=ehsan 2014-05-22 06:48:50 +03:00
Birunthan Mohanathas
ff8ce9bd42 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Glenn Randers-Pehrson
abfd29d373 Bug 987625 - Conditionally define MOZ_PNG_MAX_DIMENSION. r=jrmuizel 2014-04-01 09:14:14 -04:00
Ryan VanderMeulen
5ea0fc8045 Bug 980488 - Remove duplicate MOZ_PNG_MAX_DIMENSION definition in nsPNGDecoder.cpp.
CLOSED TREE
2014-03-24 17:14:10 -04:00
Nathan Froyd
389fcf0dd9 Bug 976566 - use Endian.h for image decoders; r=seth 2014-02-25 06:23:05 -05:00
Jeff Muizelaar
5be51a1b3a 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
Oleg Romashin
e5c33da3e3 Bug 974335 - Refactor Qt Widget Backend implementation. Qt Only changes NPDB. r=romaxa
--HG--
rename : dom/system/unix/Makefile.in => dom/system/qt/Makefile.in
rename : dom/system/unix/QTMLocationProvider.cpp => dom/system/qt/QTMLocationProvider.cpp
rename : dom/system/unix/QTMLocationProvider.h => dom/system/qt/QTMLocationProvider.h
rename : dom/system/unix/nsHapticFeedback.cpp => dom/system/qt/QtHapticFeedback.cpp
rename : dom/system/unix/nsHapticFeedback.h => dom/system/qt/QtHapticFeedback.h
rename : dom/system/unix/moz.build => dom/system/qt/moz.build
2014-02-20 18:09:02 -08:00
Masatoshi Kimura
dfb3f0e76b Bug 969918 - Use decltype to declare pointers for dynamic-loaded functions. r=jimm sr=roc 2014-02-18 07:32:52 +09:00
Ehsan Akhgari
b870bb3fe9 Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg 2014-02-10 17:57:01 -05:00
Ehsan Akhgari
6cd72749ed Bug 969877 - Stop checking the return value of nsTArray::SetLength in nsIconChannel::MakeInputStream; r=jrmuizel 2014-02-10 17:24:01 -05:00
Benoit Jacob
3369ca8bb6 Bug 959380 - 2/5 - Make gfxImageFormat a typed enum - r=jrmuizel
find . -type f | grep -v \./obj | grep -v \.hg | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)gfxImageFormat\(ARGB32\|RGB24\|A8\|A1\|RGB16_565\|Unknown\)\($\|[^A-Za-z0-9_]\)/\1gfxImageFormat::\2\3/g'
2014-01-23 13:26:40 -05:00
Jeff Walden
2a14565242 Bug 950700 - Make EXIF parsing use Endian.h functions. r=seth
--HG--
extra : rebase_source : 5962dfbfb53dd06d4a7228482a4f84f34e00cb9f
2013-12-16 10:34:27 -05:00
Seth Fowler
0df93d7209 Bug 896268 - Use a stateless approach to synchronous image decoding. r=jdm 2013-12-17 14:04:24 -08:00
Seth Fowler
97b5bcb513 Bug 950293 (Part 1) - Fix handling of little-endian EXIF data. r=tn 2013-12-16 14:11:10 -08:00
Trevor Saunders
907dfc4528 bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj 2013-12-12 20:50:01 -05:00
Birunthan Mohanathas
759ab69b0a Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
--HG--
rename : mfbt/Util.h => mfbt/ArrayUtils.h
2013-12-08 21:52:54 -05:00
Glenn Randers-Pehrson
26f0281467 Bug 938740 - Update libpng to version 1.6.7. r=jmuizelaar 2013-12-04 08:01:34 -05:00
Jacek Caban
08ee154ee6 Bug 945245 - Fixed misc char16_t/wchar_t mismatches. r=ehsan
--HG--
extra : rebase_source : fcab74b295b513f4185cf9c12f31ebaddb7c8e0e
2013-12-03 16:09:50 +01:00
Ms2ger
c651d7684c Bug 937224 - Part d: Move LOCAL_INCLUDES to moz.build in image/; r=mshal 2013-11-28 15:17:27 +01:00
Ehsan Akhgari
90fa786c75 Bug 941866 - Exclude files which rely on the known bad patterns from unified builds; r=BenWa 2013-11-21 16:36:59 -05:00
Michael Shuen
f0a727cb28 Bug 940793 - Build image/decoders/icon in unified mode. r=ehsan 2013-11-21 09:22:25 -05:00
Michael Shuen
a80cba13a0 Bug 939795 - Build image/decoder in unified mode; r=ehsan 2013-11-19 08:19:16 -05:00
Mike Hommey
a65383e1e9 Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey
8ceb917350 Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps 2013-11-19 11:48:10 +09:00
Mike Hommey
9fe772e7fd Bug 939044 - Rename remaining MODULE definitions to XPIDL_MODULE. r=mshal 2013-11-19 11:47:43 +09:00
Mike Hommey
bb6779efe3 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey
d7b6f95761 Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Mike Hommey
1d566f7586 Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
Brian O'Keefe
4c98f61956 Bug 928709 - Convert chromium-config.mk to mozbuild, r=mshal 2013-10-02 13:17:55 -04:00
Ms2ger
6ab8122e99 Bug 923395 - Part d: Remove some Makefiles in image/; r=gps 2013-10-20 09:25:19 +02:00
Glenn Randers-Pehrson
26ae7698d8 Bug 922471 - Remove MOZ_PNG_READ-WRITE global defines. r=jmuizelaar 2013-10-06 15:30:32 -04:00
Ms2ger
7ffcd856c2 Bug 900980 - Part a: Move unconditional assignments to EXPORT_LIBRARY to moz.build; rs=gps 2013-10-03 09:11:13 +02:00
Milan Sreckovic
07eb20909d Bug 856616 - Post size in the global header, rather than continuing with the processing, if all we need is a size decode. r=seth 2013-09-25 13:06:22 -04:00
Benoit Jacob
6ac61cabdb Bug 913872 - Take nested enums out of gfxASurface - 3/3 : remove the now-useless inclusions of gfxASurface.h - r=jrmuizel 2013-09-24 16:45:14 -04:00
Benoit Jacob
c1d7f88886 Bug 913872 - Take nested enums out of gfxASurface - 1/3 : automatic changes - r=jrmuizel
Generated by these regexes:

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(ImageFormat\|SurfaceType\|ContentType\|MemoryLocation\)[0-9A-Za-z_]*\)/gfx\1/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(CONTENT_\|MEMORY_\)[0-9A-Za-z_]*\)/GFX_\1/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(CONTENT_COLOR\|CONTENT_ALPHA\|CONTENT_COLOR_ALPHA\|CONTENT_SENTINEL\|MEMORY_IN_PROCESS_HEAP\|MEMORY_IN_PROCESS_NONHEAP\|MEMORY_OUT_OF_PROCESS\)\($\|[^A-Za-z0-9_]\)/\1GFX_\2\3/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(ImageFormatARGB32\|ImageFormatRGB24\|ImageFormatA8\|ImageFormatA1\|ImageFormatRGB16_565\|ImageFormatUnknown\|SurfaceTypeImage\|SurfaceTypePDF\|SurfaceTypePS\|SurfaceTypeXlib\|SurfaceTypeXcb\|SurfaceTypeGlitz\|SurfaceTypeQuartz\|SurfaceTypeWin32\|SurfaceTypeBeOS\|SurfaceTypeDirectFB\|SurfaceTypeSVG\|SurfaceTypeOS2\|SurfaceTypeWin32Printing\|SurfaceTypeQuartzImage\|SurfaceTypeScript\|SurfaceTypeQPainter\|SurfaceTypeRecording\|SurfaceTypeVG\|SurfaceTypeGL\|SurfaceTypeDRM\|SurfaceTypeTee\|SurfaceTypeXML\|SurfaceTypeSkia\|SurfaceTypeSubsurface\|SurfaceTypeD2D\|SurfaceTypeMax\)\($\|[^A-Za-z0-9_]\)/\1gfx\2\3/g'
2013-09-24 16:45:13 -04:00
Ryan VanderMeulen
a053c4c09f Merge m-c to inbound.
--HG--
rename : widget/gtk2/nsGtkIMModule.cpp => widget/gtk/nsGtkIMModule.cpp
2013-09-23 17:10:33 -04:00
Martin Stransky
3a0ac880b9 Bug 914607 - Remove MOZ_WIDGET_GTK2. r=karlt 2013-09-23 09:21:35 -04:00
Ehsan Akhgari
b4cc06df88 Bug 918923 - Part 2: Switch to #including nsString.h in code using the internal strings API; r=bsmedberg 2013-09-23 13:25:00 -04:00
Ryan VanderMeulen
ff842617a6 Backed out changeset 35575118c650 (bug 912794) for asserts. 2013-09-06 23:08:36 -04:00
Milan Sreckovic
7e8ba1c301 Bug 912794 - Separate out the CMS globals and prefs into a singleton gfxColorManagement. r=ncameron
Preferences are now initialized at startup, then updated with callbacks. The methods that access the cached values are not checking the preferences. This lets us better control which thread reads the prefs.

--HG--
rename : gfx/thebes/gfxPlatform.cpp => gfx/thebes/gfxColorManagement.cpp
rename : gfx/thebes/gfxPlatform.h => gfx/thebes/gfxColorManagement.h
2013-09-06 12:48:17 -07:00
Seth Fowler
170b4e8a3c Bug 908514 (Part 2) - Fix "variable may be used uninitialized" warning in nsICODecoder.cpp. r=jrmuizel 2013-09-05 15:55:13 -07:00
Seth Fowler
428388057f Bug 908514 (Part 1) - Replace imagelib endian macros with MFBT's endian functions. r=jrmuizel 2013-09-05 15:55:13 -07:00
Mike Hommey
f1cf3b4238 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Brian O'Keefe
4f68eb9b02 Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Seth Fowler
04f76e9b9d Bug 869723 (Part 3) - Parse EXIF orientation in nsJPEGDecoder. r=joe 2013-08-25 00:19:43 -07:00
Seth Fowler
3b56384f23 Bug 869723 (Part 2) - Add an EXIF parser to imagelib. r=tn 2013-08-25 00:19:42 -07:00
Phil Ringnalda
d9907eb8f3 Back out 353f5b3c81c7:62a1a184b2c3 (Bug 869723 and Bug 870090) for not actually building
CLOSED TREE
2013-08-24 19:13:21 -07:00
Seth Fowler
2ce23bd9cc Bug 869723 (Part 3) - Parse EXIF orientation in nsJPEGDecoder. r=joe 2013-08-24 17:31:14 -07:00
Seth Fowler
d33148b97f Bug 869723 (Part 2) - Add an EXIF parser to imagelib. r=tn 2013-08-24 17:31:14 -07:00
Birunthan Mohanathas
1f08b5ef4b Bug 784739 - Switch from NULL to nullptr in image/. r=ehsan 2013-08-23 15:51:00 -04:00
Ms2ger
d62e2c8439 Bug 906619 - Part a: Move unconditional CSRCS to moz.build; r=mshal 2013-08-22 08:56:02 +02:00
Ms2ger
dba42e4001 Bug 883284 - Part d: Move LIBXUL_LIBRARY into moz.build (f-j); r=bsmedberg 2013-08-22 08:56:00 +02:00
Ms2ger
4d968c40e1 Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps 2013-08-22 08:55:59 +02:00
Brian O'Keefe
3a92f0ae7c Bug 896177 - Remove useless config.mk includes; r=gps 2013-07-17 16:06:53 -04:00
Trevor Saunders
7da524d402 bug 886526 - remove IS_COMPONENT and MODULE_NAME makefile vars for things in libxul r=bsmedberg r=glandium 2013-08-08 20:12:37 -04:00
Joey Armstrong
9bdf289b5e Bug 870370 - Move EXTRA_COMPONENTS to mozbuild (file batch #3); r=mshal 2013-06-11 16:38:22 -04:00
Jeff Gilbert
5d6b5329a8 Bug 865919 - Abort decode of INT32_MIN BMPs. r=joe 2013-07-30 17:49:41 -07:00
Trevor Saunders
6b3c839046 backout bug 886526 because it probably made us use a lot more memory to link on windows 2013-07-29 11:03:21 -04:00
Joshua Cranmer
5d51157f46 Bug 884061 - Part 3k: Use NS_DECL_THREADSAFE_ISUPPORTS in image/, r=joedrew
--HG--
extra : rebase_source : f8582736fc5306c441ddcab7a215e16262c6f517
2013-07-18 21:23:31 -05:00
Shih-Chiang Chien
cc1f66e57f Bug 882526 - Remove Gecko support for WBMP. r=joe, r=roc 2013-07-22 22:31:24 -04:00
Brian O'Keefe
a2b1403eb0 Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps 2013-07-04 08:28:43 -04:00
Trevor Saunders
82e5558b37 bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal 2013-07-11 11:06:34 -04:00
Joe Drew
4c8de2c43e Bug 890179. r=seth a=abillings
--HG--
extra : rebase_source : f8c1f5adbdcc9bae652df901f256e8eac3fc5dc3
2013-07-04 15:58:26 -04:00
Trevor Saunders
6be251fe42 bug 886526 - disallow MODULE_NAME and IS_COMPONENT for makefiles in libxul r=bsmedberg 2013-06-25 11:15:21 -04:00
Joey Armstrong
a6b9800cfb bug 870407: cleanup bug. r=mshal 2013-07-08 11:53:00 -04:00
Joey Armstrong
b931149ad7 bug 870407: move CMMSRCS to mozbuild (file batch #3). r=mshal 2013-07-02 17:09:08 -04:00
Phil Ringnalda
f369c57eb1 Backed out 066a0110bd0b:1dc02c10629c (bug 865919) for mochitest-4 assertions
CLOSED TREE
2013-07-01 19:18:34 -07:00
Jeff Gilbert
b36a7dae4f Bug 865919 - Check for still-negative heights when decoding BMPs. - r=joe 2013-07-01 17:32:06 -07:00
Joey Armstrong
90f5105a37 bug 880246: move EXTRA_PP_COMPONENTS to mozbuild (cleanup). r=mshal 2013-06-20 15:59:59 -04:00
Brian O'Keefe
5f8b5163e8 Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1); r=mshal
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Joe Drew
d943e48d3b Bug 867774 - Create a FrameBlender class that holds on to an image's frames and can blend frames together on demand (while leaving the decision as to which frames to external users). r=seth
FrameBlender steals RasterImage::mFrames, RasterImage::DoComposite, and the
RasterImage blending helper functions CopyFrameImage, DrawFrameTo, and
ClearFrame. Now RasterImage doesn't hold on to its frames directly, and defers
all blending to FrameBlender::DoComposite.

--HG--
extra : rebase_source : f03736045f967f0947441703e54135b98d9dcf54
2013-06-17 16:49:04 -04:00
Joey Armstrong
ad3592a2c7 bug 880246: move EXTRA_PP_COMPONENTS to mozbuild (file batch #1) r=mshal 2013-06-14 14:07:19 -04:00
Martin Stransky
f672df1462 Bug 877626 - Port GTK2 to GTK3 - build config, rest of the tree. r=karlt 2013-06-12 08:04:28 -04:00
Joe Drew
6b8b0daa3b Bug 878751 - Port a bug fix from Chrome back to Mozilla. r=jlebar
--HG--
extra : rebase_source : d680dada2ac1932806e10c6050376a849112f523
2013-06-07 16:42:57 -04:00
Mike Shal
994cfe0b6b Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Seth Fowler
8c3903226a Bug 871671 - Only pause the PNG decoder when we really need a new frame. r=joe
--HG--
extra : rebase_source : e2ae7acd6005e5913f2c3d45c83771c8fbed729c
2013-05-22 09:52:10 +08:00
Ed Morley
6a4be11ca0 Backed out changeset fea91386092f (bug 871671) 2013-05-21 12:39:25 +01:00
Seth Fowler
39660769e8 Bug 871671 - Only pause the PNG decoder when we really need a new frame. r=joe 2013-05-21 17:36:22 +08:00
Joe Drew
071c6950d2 Bug 869125 - Use the preallocated first frame in the PNG and GIF decoders when possible so we don't flash unnecessarily. r=seth
--HG--
extra : rebase_source : b2b914fd86c7946392588726082b885b09a97b37
2013-05-07 22:25:03 -04:00
Glenn Randers-Pehrson
373912d113 Bug 857040 - Warn on bad CRC instead of error exit. r=joe 2013-05-06 09:04:16 -04:00
Alfred Kayser
d63916b4eb Bug 685471 - In PNG decoder, the allocating of mHeaderBuf can be prevented. (followup) r=joe@drew.ca 2013-05-04 13:42:26 +02:00
Alfred Kayser
8374926681 Bug 685471 - In PNG decoder, the allocating of mHeaderBuf can be prevented. r=joe@drew.ca 2013-05-04 11:39:47 +02:00
Joe Drew
d9e7df5f65 Bug 863958 - Don't call SetSize from the ICO decoder if we already have the size. r=seth
--HG--
extra : rebase_source : 924fbe8460992b919d3d7072d162f23eaef30e2f
2013-04-25 16:34:30 -04:00
Timothy Nikkel
13ed3b291e Bug 863970. Remove some dead code in imagelib. r=seth 2013-04-24 23:37:00 -05:00
Joe Drew
c7c11b03b9 Bug 863123 - Set APNG attributes on the right frame, rather than one frame behind. r=seth 2013-04-22 10:57:17 -04:00
Masatoshi Kimura
7c989863ee Bug 858224 - Remove most MSVC exemptions for FAIL_ON_WARNINGS. r=ted feedback=dholbert 2013-04-07 13:45:34 +09:00
Seth Fowler
f9d0108ed6 Bug 857623 - Ensure we always call PostFrameStop before PostDecodeDone in nsGIFDecoder2.cpp. r=tn 2013-04-05 18:02:39 -07:00
Jonathan Kew
dd3cfda9ac bug 854441 - prefer downscaling a larger icon rather than upscaling a smaller one, if exact size is not available. r=seth 2013-04-02 08:18:09 +01:00
Kyle Machulis
5aa83c3e11 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693 Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Shih-Chiang Chien
c665155214 Bug 852053 - Support WBMP on FirefoxOS only. r=joe 2013-03-20 14:03:07 +08:00
Joe Drew
897f5fe8e0 Bug 853536 - Never write to size-only decoders when we've already gotten the size. r=jrmuizel
--HG--
extra : rebase_source : 14e8cf30dc665eab10e04ef643513bcfad633ea2
2013-03-23 11:05:55 -04:00
Joe Drew
1587c1c909 Bug 853337 - Make sure we actually call Flush and MarkDirty on frames when we've done some decoding work. r=seth 2013-03-22 22:05:44 -04:00
Wes Johnston
e254391954 Bug 419588 - Add support for a resolution media fragment. r=seth 2013-03-22 16:12:40 -07:00
Joe Drew
b331eb8555 Bug 716140 - Allocate frames asynchronously with a separate worker dispatched to the main thread. r=seth
--HG--
extra : rebase_source : 116fa383362c5ff7016e81c345645fa2607cf9a3
2013-02-27 14:23:08 -05:00
Joe Drew
5b5ff16d15 Bug 716140 - Set the size of images via ImageMetadata objects. r=seth
* * *
imported patch jpeg-size-decode-more-writing

--HG--
extra : rebase_source : 34f28c95b7164c35678f9e61faa3a8497da25893
2013-02-27 14:23:08 -05:00
Joe Drew
39b180a45f Bug 716140 - Set metadata directly on frames. r=seth
--HG--
extra : rebase_source : d3899816bb6b5f816955a53c2cd7ad1bf8ad788a
2013-02-27 14:23:08 -05:00
Joe Drew
7d7f4428f7 Bug 716140 - Preallocate frames before going into a decoder. r=seth
--HG--
extra : rebase_source : 6445356bc4a01ac2890eca855103e58bda772095
2013-02-01 20:06:30 -05:00
Joe Drew
a4fb0a698b Bug 716140 - Always run a size decode before doing a full decode so we know the size before decoding. r=jlebar
--HG--
extra : rebase_source : de3388c861b00b135b658ea9a9225b0cc58e389a
2013-01-31 13:38:24 -05:00
Joe Drew
ffcb478530 Bug 716140 - Make animated image formats (PNG and GIF) explicitly pause decoding and ask for a new image frame when they need new frames.
--HG--
extra : rebase_source : 3a4148d8d144784075ec88668359c333420c3d4a
2013-01-28 12:27:35 -05:00
Joe Drew
7aa4fdd72d Bug 716140 - Make mImageData and mColormap (and their sizes) protected members of mozilla::image::Decoder rather than the leaf classes.
--HG--
extra : rebase_source : d4f506a669d5b18a33676434ad0cc512216956d5
2013-01-28 12:26:36 -05:00
Joe Drew
e3aad71854 Bug 716140 - Add SetObserver method to Decoder instead of initializing it in the constructor. r=seth
In order to have "throw-away" imgStatusTrackers that we'll use to track an
individual decode chunk's status, we need to be able to change the observer on
a decoder.

--HG--
extra : rebase_source : b10a050022f80dddeeea62e77d3f208598311d4f
2013-01-18 16:47:18 -05:00
Joe Drew
7ab61b029d Bug 716140 - Track image metadata in a separate object, and sync it to the image once decoding is done. r=jlebar
--HG--
extra : rebase_source : ba1173bc1cf090ed02f3a9a7927382c302576088
2012-12-20 11:49:25 -05:00
Joe Drew
8a43b8d666 Bug 716140 - Don't call Set* methods directly on images from decoders; call them from the Decoder base class. r=seth
--HG--
extra : rebase_source : 9f7ec3cb8b8393053abbc872d706a6304a157d55
2012-12-19 15:11:42 -05:00
Gregory Szorc
09e7b06723 Bug 844654 - Part 3: Remove now empty Makefile.in files; rs=khuey
--HG--
extra : rebase_source : 8de9c7f68a953e574dda22f8c14c2b2ca60444f9
2013-03-19 18:49:07 -07:00
Mike Shal
9680b82df6 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Shih-Chiang Chien
52d6dc4b9b Bug 847310 - WBMP decoder implementation. r=joe 2013-03-08 11:17:29 +08:00
Gregory Szorc
7bb3ee056b Bug 818246 - Part 4: Move XPIDLSRCS into moz.build (auto); rs=glandium
This is the result of running
|mach mozbuild-migrate --list XPIDLSRCS SDK_XPIDLSRCS XPIDL_SOURCES| and
reverting xpcom/sample/*.
2013-03-12 10:17:46 -07:00
Gregory Szorc
58b7ec0116 Bug 818246 - Part 1: Remove unncessary definitions of XPIDL_MODULE; r=glandium
XPIDL_MODULE defaults to MODULE. These Makefile.in were setting
XPIDL_MODULE to the same value as MODULE.

--HG--
extra : rebase_source : e96bd34d5949d0ab94cecbec35d6c9f4bffec01e
2013-03-07 05:03:51 -08:00
Ryan VanderMeulen
9e38519fb1 Backed out changeset 45d4f7b16c2f (bug 847559) for bustage. 2013-03-05 12:59:00 -05:00
Joe Drew
5eda554e17 Bug 847559 - Handle writes to a size-only JPEG decoder after we've gotten the size. r=seth
--HG--
extra : rebase_source : c02aa4f03dbba90d07f55d383a507bb27f605287
2013-02-27 14:23:08 -05:00
Gregory Szorc
f0b7e3972c Merge mozilla-central into build-system
There were merges in configure.in and some Makefile.in. None had any
conflicts. I spot verified the Makefile.in changes and confirmed that
the changes did not touch any DIRS* variables.
2013-02-27 10:03:52 -08:00
Gregory Szorc
afd08540c0 Bug 784841 - Part 18p: Convert /image; r=jrmuizel f=Ms2ger 2013-02-25 12:47:21 -08:00
Josh Matthews
e67f726896 Bug 844684 - Decode GIFs that include an application extension string shorter than 11 bytes. r=joe 2013-02-27 00:24:18 -05:00
Daniel Holbert
5854492293 Bug 837313: Mark image/decoders, image/decoders/icon, and image/decoders/icon/win as FAIL_ON_WARNINGS. r=joe 2013-02-01 23:19:15 -08:00
Chris Peterson
cd87a59758 Bug 834611 - Part 3: Mark widget/android, mozglue/android, and image/decoders/icon/android as FAIL_ON_WARNINGS. r=kats 2013-01-25 11:03:56 -08:00
Mats Palmgren
6c53161814 Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
Filippo Cristofoletti
e96b538e75 Bug 243763 - explicit cast from LONG to int8_t. r=bbondy 2013-01-11 12:05:31 -05:00
Seth Fowler
9ab61d4fcd 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
1ed577fa28 Backed out changeset 5244caae8c46 (bug 822846) for Windows build bustage. 2012-12-23 11:45:38 -05:00
Seth Fowler
7278eff009 Bug 822846 - Use nsMimeTypes.h instead of working with literal strings in imagelib. r=joe 2012-12-19 13:33:56 -08:00
Neil Rashbrook
b87325632b Bug 818861 Shouldn't allow promising a flat string from a flat string r=dbaron 2012-12-22 20:40:37 +00:00
Joe Drew
d070cfdc5f Bug 716140 - Convert the XPCOM imgIDecoderObserver interface into a private C++ interface, imgDecoderObserver, so we can more easily make changes to it. r=jrmuizel 2012-12-18 11:37:15 -05:00
Joe Drew
d49d3e14e7 Bug 716140 - Merge imgIContainerObserver and imgIDecoderObserver since they aren't used in different places any more. r=jrmuizel 2012-12-18 11:37:15 -05:00
Joe Drew
3fbaeacc95 Bug 716140 - Don't use Gets on mImage from decoders. 2012-12-18 11:37:14 -05:00
Jeff Walden
7146c23e80 Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger 2012-12-14 18:58:45 -05:00
Josh Matthews
bf4151399c Bug 801366 - Restrict GIF pixels to the range of the colormap. r=jrmuizel 2012-11-28 10:41:31 -05:00
Jonathan Kew
aad0b5676b bug 815512 pt 1 - on retina-display Macs, moz-icon gets a bitmap that is 2x the 'expected' size. r=joe 2012-11-28 09:04:14 +00:00
Ehsan Akhgari
170e423703 Bug 815359 - Use the correct contract ID to create nsISupportsPRUint32's in the icon decoder; r=bzbarsky 2012-11-27 21:07:01 -05:00
Jeff Muizelaar
7406d0ccb6 Bug 812602. Don't decode jpegs progressively when we have all the data. r=joe
Decoding progressively is slower because we duplicate work like color
conversion and color correction for each outputted scan. We already suppress
paints when have all of the data, so we shouldn't do this extra work.

--HG--
extra : rebase_source : e6dd733546e1bb9e6e3279d9ceea0b4c0a88e049
2012-11-18 20:18:52 -05:00
Kyle Huey
1482122303 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Vicamo Yang
8297cdabd6 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey
bdf47895bb Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
777eed8444 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
aa1997a51a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Nathan Froyd
bd55a07f0e Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Nick Hurley
a115c7b5bc Bug 536324 part 2 - Change implementers of nsIChannel. r=sworkman 2012-10-22 10:51:07 -07:00
Isaac Aggrey
cbb17fe7b2 Bug 794510: Part 2: Use more stdint types instead of protypes.h types; r=ehsan 2012-10-11 18:38:04 -05:00
Nicholas Nethercote
6669152d43 Bug 744686 - Comment out unused |alpha_bits| variable to fix a compile warning. r=jmuizelaar.
--HG--
extra : rebase_source : 48be31fe3eab889e6f7930f44b96140ba076c389
2012-10-17 15:54:25 -07:00
Daniel Holbert
155b4147de Bug 802409: Mark a bunch of /image subdirectories as FAIL_ON_WARNINGS. r=joe 2012-10-17 08:32:12 -07:00
Daniel Holbert
461f07928c Bug 802458: Remove useless "NS_SUCCEEDED(rv)" in icon/gtk/nsIconChannel.cpp, and declare rv down where it's used. r=karlt 2012-10-16 22:18:10 -07:00
Bobby Holley
a95f6e7526 Bug 505385 - Part 4: Fix some warnings. r=joe 2012-10-12 12:11:20 -04:00
Josh Matthews
08a5eceeeb Back out bug 585385 for build bustage. 2012-10-11 21:58:24 -04:00
Bobby Holley
07b4446c58 Bug 505385 - Part 4: Fix some warnings. r=joe 2012-10-11 21:34:22 -04:00
Trevor Saunders
9b60ca6b7e bug 797445 - remove prmem.h from imagelib r=joe 2012-10-03 14:10:31 -04:00
Tom Schuster
68bf2735b6 Bug 795442 - Allow nsIChannel.contentDispositionFilename to be writable. r=jduell, sr=biesi 2012-10-02 09:43:00 -07:00
Tatiana Meshkova
dcadb6368a Bug 486918. Part 2: Add the ability to pre-downscale using a high-quality scaler on a separate thread. r=joe,jlebar 2012-04-03 14:57:22 -07:00
Ms2ger
a72f8370a2 Bug 795862 - Back out bug 486918 for build bustage in unreviewed code. 2012-10-01 14:16:03 +02:00
Tatiana Meshkova
ebd8a29749 Bug 486918. Part 2: Add the ability to pre-downscale using a high-quality scaler on a separate thread. r=joe,jlebar 2012-04-03 14:57:22 -07:00
Ed Morley
722b933229 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
Tatiana Meshkova
50ec738dc1 Bug 486918. Part 2: Add the ability to pre-downscale using a high-quality scaler on a separate thread. r=joe,jlebar
--HG--
extra : rebase_source : fa22f42c832ae57b8e221ee03c68a45d33a929d3
2012-04-03 14:57:22 -07:00
Isaac Aggrey
997db4d142 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Joe Drew
430f02b8e7 Bug 789046 - Port a bug fix from the Webkit GIF decoder back to its progenitor, Mozilla! r=jlebar 2012-09-21 18:32:49 -04:00
Joe Drew
69a896a375 Bug 758200 - Zero out buffers when allocating new frames in GIF images. r=jlebar 2012-09-21 18:32:47 -04:00
Jeff Muizelaar
ac204f120b Bug 791305. Use libjpeg's color conversion code instead of our own. r=joe,r=khuey
libjpeg-turbo supports converting directly to a format compatible with cairo's
FORMAT_RGB24. Use that instead of our own handcoded function. This also gives
us SSE2 and NEON version of this function.

--HG--
extra : rebase_source : 18f48925f023a33ec2a097d4f4e5cc2ab40be1e9
2012-09-14 15:54:55 -04:00
Luqman Aden
46d1c6ded1 Bug 714937 - Replace GFX_PACKED_PIXEL with an inline function. r=jrmuizel 2012-09-06 01:31:29 -04:00
Ehsan Akhgari
08bfa558c1 Backout changeset 25fd2119c8e1 (bug 714937) for possible orange 2012-09-06 18:51:02 -04:00
Luqman Aden
8abf3c5145 Bug 714937 - Replace GFX_PACKED_PIXEL with an inline function. r=jrmuizel 2012-09-06 01:31:29 -04:00
Makoto Kato
c28c020a8f Bug 784912 - nsIStreamListener.onDataAvailable should handle 64-bit offset. r=honza 2012-09-06 11:41:02 +09:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ben Turner
0727b7098c Bug 784726 - 'Remove old IPC::URI'. r=cjones+khuey.
--HG--
rename : ipc/glue/IPCSerializableParams.ipdlh => ipc/glue/InputStreamParams.ipdlh
extra : transplant_source : %A6%BC%8B%8D%3A_%7Df%2B%FE%AA%94%81%AB%CAW%15K%A7%03
2012-08-23 12:33:46 -07:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
df6a8bf05b Bug 782252 - Cast more setjmp()/longjmp() nsresult usage; r=ehsan 2012-08-07 20:17:27 +03:00
Aryeh Gregor
0923bf00ef Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Ms2ger
17e25febb8 Bug 780387 - Part d: Stop using PRFloat64; r=bsmedberg 2012-08-09 09:09:42 +02:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Ehsan Akhgari
b40b21d633 Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00