Michael Wu
82821675ed
Bug 994081 - [2/3] Convert imgFrame to SourceSurfaces, r=seth
2014-04-19 21:28:38 -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
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
Seth Fowler
0df93d7209
Bug 896268 - Use a stateless approach to synchronous image decoding. r=jdm
2013-12-17 14:04:24 -08:00
Glenn Randers-Pehrson
26f0281467
Bug 938740 - Update libpng to version 1.6.7. r=jmuizelaar
2013-12-04 08:01:34 -05: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
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
Birunthan Mohanathas
1f08b5ef4b
Bug 784739 - Switch from NULL to nullptr in image/. r=ehsan
2013-08-23 15:51:00 -04:00
Joe Drew
4c8de2c43e
Bug 890179. r=seth a=abillings
...
--HG--
extra : rebase_source : f8c1f5adbdcc9bae652df901f256e8eac3fc5dc3
2013-07-04 15:58:26 -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
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
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
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
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
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
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
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
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
Nathan Froyd
bd55a07f0e
Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan
2012-10-29 19:32:10 -04: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
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
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
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
Ms2ger
17e25febb8
Bug 780387 - Part d: Stop using PRFloat64; r=bsmedberg
2012-08-09 09:09:42 +02:00
Aryeh Gregor
e806eeab4f
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Glenn Randers-Pehrson
77ec0c84cb
Bug 745202 - Disable palette-index-checking when using the system PNG decoder. r=joe
2012-07-23 20:02:20 -04:00
Gervase Markham
ca171eec44
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Adam Dane [:hobophobe]
7f04cb4204
Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe
2012-05-19 14:32:37 -05:00
Ryan VanderMeulen
bcfe82d03b
Backout bug 733553 due to mochitest orange.
2012-05-19 12:10:26 -04:00
Adam Dane [:hobophobe]
2fb449e6aa
Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe
2012-05-08 21:35:32 -05:00
Joe Drew
756646f15d
Back out changeset 501d38d3892c (Bug 733553) for causing crashes in xpcshell tests.
2012-05-08 21:59:30 -04:00
Adam Dane [:hobophobe]
e1da62aa08
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