Nicholas Nethercote
d7565e31dd
Bug 1210291 - Streamline StreamingLexer's handling of terminal states. r=seth.
...
This patch introduces TerminalState and changes LexerTransition::mNextState to
be a Variant<State, TerminalState>. This means that SUCCESS and FAILURE no
longer need to be part of State.
Some things to note:
- This simplifies the handling of Lex()'s return value, which is nice.
- The patch splits Terminate() into TerminateSuccess() and TerminateFailure().
- |const State& aNextState| wouldn't work for the first arg to
LexerTransition's ctor due to errors in Variant construction that I didn't
understand. I had to change it to |State aNextState|.
2015-10-28 01:30:20 -07:00
Nicholas Nethercote
83ed762b90
Bug 1204393 (part 1) - Use StreamingLexer in the ICON decoder. r=seth.
...
* * *
Bug 1204393 (part 1b) - Address review comments.
2015-10-05 14:29:01 -07:00
Seth Fowler
c551622a5f
Bug 1207378 (Part 1) - Add support for a frame rect to Downscaler. r=tn
2015-09-26 01:36:19 -07:00
Seth Fowler
afe849ca13
Bug 1146663 (Part 5) - Require that all image decoders support downscale-during-decode. r=tn
2015-09-19 16:21:08 -07:00
Seth Fowler
2ede7fa61c
Bug 1201763 - Add downscale-during-decode support for the ICON decoder. r=tn
2015-09-08 22:07:18 -07:00
Seth Fowler
9e22179872
Bug 1184996 (Part 3) - Replace all remaining references to 'size decodes' with 'metadata decodes'. r=tn
2015-07-22 22:39:54 -07:00
Seth Fowler
54965c6b4b
Bug 1117607 - Make decoders responsible for their own frame allocations. r=tn
2015-07-10 19:26:15 -07:00
Nicholas Nethercote
0247de46d8
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
2015-02-04 20:05:36 -08:00
Seth Fowler
2bdea26cf3
Bug 1079627 (Part 1) - Make image decoders hold a strong reference to their image. r=tn
2015-01-15 15:11:35 -08:00
Tom Schuster
d264cfbf91
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
009be282e7
Bug 1079627 (Part 1) - Make image decoders hold a strong reference to their image. r=tn
2015-01-11 05:34:20 -08:00
Seth Fowler
646c0517f9
Bug 1117607 - Make decoders responsible for their own frame allocations. r=tn
2015-01-10 18:47:44 -08:00
Wes Kocher
d9887255c9
Backout 17fc30214d84 (bug 1117607) for reftest orange
2015-01-09 18:48:43 -08:00
Seth Fowler
680fcabbd0
Bug 1117607 - Make decoders responsible for their own frame allocations. r=tn
2015-01-09 15:02:48 -08:00
Seth Fowler
cce1ed915f
Bug 1116733 (Part 2) - Remove DecodeStrategy and frame allocation handling outside of Decoder. r=tn
2015-01-08 00:04:31 -08:00
Seth Fowler
0809abe2c3
Bug 1103328 (Part 3) - Fire HAS_TRANSPARENCY in nsIconDecoder. r=tn
2014-11-24 23:42:43 -08:00
Glenn Randers-Pehrson
e79ba1e9e5
Bug 991149 - Improve image/* source compliance with Mozilla Coding Style. r=seth
2014-11-14 12:59:00 -05:00
Seth Fowler
acde3e3c81
Bug 896268 - Use a stateless approach to synchronous image decoding. r=jdm
2013-12-17 14:04:24 -08:00
Joe Drew
65367c8ad9
Bug 716140 - Preallocate frames before going into a decoder. r=seth
2013-02-01 20:06:30 -05:00
Joe Drew
ffd8a83592
Bug 716140 - Make mImageData and mColormap (and their sizes) protected members of mozilla::image::Decoder rather than the leaf classes.
2013-01-28 12:26:36 -05:00
Joe Drew
2f718f0446
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.
2013-01-18 16:47:18 -05:00
Mats Palmgren
7532b4e736
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
644bf01c61
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
b8a3d4f289
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
Ehsan Akhgari
243c878d26
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
691ef24b2a
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Adam Dane [:hobophobe]
8d3bacd73d
Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe
2012-05-19 14:32:37 -05:00
Ryan VanderMeulen
694730ebfa
Backout bug 733553 due to mochitest orange.
2012-05-19 12:10:26 -04:00
Adam Dane [:hobophobe]
ad8f244aa5
Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe
2012-05-08 21:35:32 -05:00
Joe Drew
4999a23373
Back out changeset 501d38d3892c (Bug 733553) for causing crashes in xpcshell tests.
2012-05-08 21:59:30 -04:00
Adam Dane [:hobophobe]
eb7b767c71
Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe
2012-05-08 16:19:01 -05:00
Atul Aggarwal
087e83c8f3
Bug 698263 - Rename mozilla::imagelib namespaces to mozilla::image r=joe
2012-01-06 21:32:27 +05:30
Jeff Muizelaar
a630decddb
Bug 691754. Change the decoder constructor to use a c++ reference instead of a pointer. r=joe
...
A raster image always outlives it's decoder so we can refer to it using a reference instead of a pointer.
2011-09-29 09:17:13 -04:00
Bobby Holley
ab9ccfcf7a
Bug 128502 - Move imagelib to mozilla/image on a CLOSED TREE. r=joe,brendan
2011-10-17 21:32:45 -07:00