Benoit Jacob
981c6431d3
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
Seth Fowler
4eec5ac33b
Bug 896268 - Use a stateless approach to synchronous image decoding. r=jdm
2013-12-17 14:04:24 -08:00
Glenn Randers-Pehrson
3f09818199
Bug 938740 - Update libpng to version 1.6.7. r=jmuizelaar
2013-12-04 08:01:34 -05:00
Benoit Jacob
0f90257361
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
d2e73511c3
Backed out changeset 35575118c650 (bug 912794) for asserts.
2013-09-06 23:08:36 -04:00
Milan Sreckovic
ec49f86c3b
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
b83c6981a1
Bug 908514 (Part 2) - Fix "variable may be used uninitialized" warning in nsICODecoder.cpp. r=jrmuizel
2013-09-05 15:55:13 -07:00
Birunthan Mohanathas
4616413b71
Bug 784739 - Switch from NULL to nullptr in image/. r=ehsan
2013-08-23 15:51:00 -04:00
Joe Drew
ed16810baa
Bug 890179. r=seth a=abillings
...
--HG--
extra : rebase_source : f8c1f5adbdcc9bae652df901f256e8eac3fc5dc3
2013-07-04 15:58:26 -04:00
Joe Drew
4087d4c4fc
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
Seth Fowler
aa374ef00a
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
ab2d1c2963
Backed out changeset fea91386092f (bug 871671)
2013-05-21 12:39:25 +01:00
Seth Fowler
b858492ce7
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
bc07df908a
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
d3c0135e53
Bug 857040 - Warn on bad CRC instead of error exit. r=joe
2013-05-06 09:04:16 -04:00
Alfred Kayser
5e3cf1f437
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
211da1bf01
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
0b89a02d23
Bug 863123 - Set APNG attributes on the right frame, rather than one frame behind. r=seth
2013-04-22 10:57:17 -04:00
Joe Drew
fc050378be
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
7d514165ce
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
2525e3d479
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
4ce34106b2
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
Mats Palmgren
d5826be6d7
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
Joe Drew
8f36201dd5
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
ea276a720a
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
c87f937e12
Bug 716140 - Don't use Gets on mImage from decoders.
2012-12-18 11:37:14 -05:00
Nathan Froyd
f9b2a74082
Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan
2012-10-29 19:32:10 -04:00
Nicholas Nethercote
b7c50cf8b3
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
Tatiana Meshkova
1905ac69f9
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
372fb21863
Bug 795862 - Back out bug 486918 for build bustage in unreviewed code.
2012-10-01 14:16:03 +02:00
Tatiana Meshkova
6c58b4dd5f
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
6250aafdf0
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
730949b4e1
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
0cc4b12d36
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
Luqman Aden
08cb307676
Bug 714937 - Replace GFX_PACKED_PIXEL with an inline function. r=jrmuizel
2012-09-06 01:31:29 -04:00
Ehsan Akhgari
5cbbc61e17
Backout changeset 25fd2119c8e1 (bug 714937) for possible orange
2012-09-06 18:51:02 -04:00
Luqman Aden
acf0e3b37f
Bug 714937 - Replace GFX_PACKED_PIXEL with an inline function. r=jrmuizel
2012-09-06 01:31:29 -04:00
Ehsan Akhgari
8c296bbcd4
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
Ms2ger
8fcd7f8f16
Bug 780387 - Part d: Stop using PRFloat64; r=bsmedberg
2012-08-09 09:09:42 +02:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Glenn Randers-Pehrson
6fe320fcae
Bug 745202 - Disable palette-index-checking when using the system PNG decoder. r=joe
2012-07-23 20:02:20 -04:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Adam Dane [:hobophobe]
d67d1141cb
Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe
2012-05-19 14:32:37 -05:00
Ryan VanderMeulen
dc10c85eb0
Backout bug 733553 due to mochitest orange.
2012-05-19 12:10:26 -04:00
Adam Dane [:hobophobe]
9c321e4de0
Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe
2012-05-08 21:35:32 -05:00
Joe Drew
14a6d481db
Back out changeset 501d38d3892c (Bug 733553) for causing crashes in xpcshell tests.
2012-05-08 21:59:30 -04:00
Adam Dane [:hobophobe]
c6313176ac
Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe
...
--HG--
extra : rebase_source : 21ebc85f26fcbc4a4a27387d1ec5007c0886c386
2012-05-08 16:19:01 -05:00
Jeff Gilbert
5c20276bf3
Bug 696569 - Allow for non-premultiplied data for canvases - r=bjacob,joedrew
2012-03-23 15:10:50 -07:00
Ryan VanderMeulen
5ba5232745
Bug 648690 - Update libpng to version 1.5.9 (Mozilla changes). r=joedrew, f=dolske
2012-03-03 22:18:31 -05:00
Atul Aggarwal
3e0a05f88e
Bug 698263 - Rename mozilla::imagelib namespaces to mozilla::image r=joe
2012-01-06 21:32:27 +05:30