Commit Graph

75 Commits

Author SHA1 Message Date
Seth Fowler
12931c48ec Bug 1079627 (Part 3) - Support multiple decoders for a single RasterImage. r=tn 2015-01-11 05:34:20 -08:00
Seth Fowler
d026f10d29 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
b63799e189 Bug 1118092 - Manage invalidation policy directly in the image decoder. r=tn 2015-01-10 20:47:38 -08:00
Seth Fowler
4cfb230690 Bug 1117607 - Make decoders responsible for their own frame allocations. r=tn 2015-01-10 18:47:44 -08:00
Wes Kocher
87aaffcfac Backout 17fc30214d84 (bug 1117607) for reftest orange 2015-01-09 18:48:43 -08:00
Seth Fowler
55a9e0f656 Bug 1117607 - Make decoders responsible for their own frame allocations. r=tn 2015-01-09 15:02:48 -08:00
Seth Fowler
97e722b9e0 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
14f7ddb551 Bug 1116735 - Allocate frames in the decoder. r=tn
--HG--
extra : rebase_source : df5c3cbe4e8a8ad40e4a7fa04a2c53e1c3bad559
2015-01-08 00:01:25 -08:00
Seth Fowler
6b6f748f38 Bug 1116737 - Merge FrameBlender into FrameAnimator. r=tn
--HG--
extra : rebase_source : f2021135cf82e35273095f8e96373bcbee304710
2015-01-07 13:07:23 -08:00
Seth Fowler
79e9039ad2 Bug 1106448 - Make sure we have a frame in GetCurrentFrameRef. r=tn 2014-12-03 10:02:19 -08:00
Seth Fowler
9084851cc0 Bug 1060869 (Part 2) - Store the first frame of a RasterImage in the SurfaceCache. r=tn 2014-11-26 13:22:10 -08:00
Carsten "Tomcat" Book
e1bf617468 Backed out changeset 0a67a7799022 (bug 1060869) 2014-11-26 11:57:09 +01:00
Seth Fowler
17cca2dddf Bug 1060869 (Part 2) - Store the first frame of a RasterImage in the SurfaceCache. r=tn 2014-11-26 01:37:56 -08:00
Carsten "Tomcat" Book
72fe57f38d Backed out changeset f6989ebe8e1c (bug 1060869) 2014-11-25 14:13:56 +01:00
Seth Fowler
cf6e30d17b Bug 1060869 (Part 2) - Store the first frame of a RasterImage in the SurfaceCache. r=tn
--HG--
extra : rebase_source : 3dcbc1258ab36634859c739c8e3c0d464cc52711
2014-11-25 00:10:11 -08:00
Seth Fowler
fec7fbae51 Bug 1103328 - Tweak wording of comment for Decoder::PostHasTransparency. r=me DONTBUILD 2014-11-25 00:00:00 -08:00
Seth Fowler
c30841d784 Bug 1103328 (Part 5) - Add better documentation for PostHasTransparency. r=tn 2014-11-24 23:42:43 -08:00
Seth Fowler
dc37edcda5 Bug 1081012 - Move DecodePool and related helpers out of RasterImage. r=tn 2014-11-18 18:17:17 -08:00
Seth Fowler
67f54397a9 Bug 1079653 (Part 3) - Make decoders track whether they need to flush data after getting a new frame. r=tn 2014-11-18 12:06:27 -08:00
Seth Fowler
c277da2460 Bug 1079653 (Part 1) - Move decode telemetry data from DecodeRequest to Decoder. r=tn 2014-11-18 12:06:26 -08:00
Seth Fowler
4953a29763 Bug 1100725 (Part 4) - Assert that we always consume all decoder progress and invalidations. r=tn 2014-11-18 01:48:49 -08:00
Seth Fowler
9b674c5a9b Bug 1100725 (Part 2) - Consume all the contained decoder's invalidations in nsICODecoder. r=tn 2014-11-18 01:48:48 -08:00
Seth Fowler
357f392367 Bug 1089880 (Part 1) - Add a HAS_TRANSPARENCY notification to ImageLib. r=tn 2014-11-17 11:16:45 -08:00
Seth Fowler
2228978019 Bug 1097432 (Part 3) - Rename imgStatusTracker to ProgressTracker and ImageStatusDiff to Progress. r=tn
--HG--
rename : image/src/imgStatusTracker.cpp => image/src/ProgressTracker.cpp
rename : image/src/imgStatusTracker.h => image/src/ProgressTracker.h
2014-11-14 20:10:47 -08:00
Seth Fowler
289c979c45 Bug 1089046 (Part 1) - Remove imgDecoderObserver and related code. r=tn 2014-11-14 20:06:19 -08:00
Glenn Randers-Pehrson
baebf22bf7 Bug 991149 - Improve image/* source compliance with Mozilla Coding Style. r=seth 2014-11-14 12:59:00 -05:00
Seth Fowler
ef98a8e6f2 Bug 1084679 - Track invalidation rects during decoding on Decoder, not imgStatusTracker. r=tn 2014-11-10 12:37:35 -08:00
Ryan VanderMeulen
1b5dfe545a Backed out 5 changesets (bug 1079653) for mochitest-dt asserts on a CLOSED TREE.
Backed out changeset aaac8c671299 (bug 1079653)
Backed out changeset 59d1754eb01f (bug 1079653)
Backed out changeset dfb0890b02be (bug 1079653)
Backed out changeset 546f90c14465 (bug 1079653)
Backed out changeset a8e760faf784 (bug 1079653)
2014-10-15 19:00:12 -04:00
Seth Fowler
cd966760e9 Bug 1079653 (Part 3) - Make decoders track whether they need to flush data after getting a new frame. r=tn
--HG--
extra : rebase_source : c2022c4dd83dbcc87199b4b51335215cbc9adcb0
2014-10-15 13:52:21 -07:00
Seth Fowler
7292a61f62 Bug 1079653 (Part 1) - Move decode telemetry data from DecodeRequest to Decoder. r=tn
--HG--
extra : rebase_source : cd86116a2df649eb14ce2db55c5b2c2b90b0f4f8
2014-10-15 13:52:21 -07:00
Seth Fowler
147bef09ad Bug 1079628 - Record the number of bytes decoded on a per-decoder basis. r=tn
--HG--
extra : rebase_source : d479aeb16595648f61adee8e0ad18558f5d9e6ba
2014-10-15 13:52:20 -07:00
Anuj Agarwal
be5024d1d9 Bug 1028147 - Privatize public destructor of image::Decoder. r=seth 2014-09-09 19:47:02 -07:00
Ehsan Akhgari
4a9f378bd7 Bug 1061047 - Fix some bad implicit constructors in imagelib; r=jrmuizel 2014-09-02 12:20:24 -04:00
Seth Fowler
ae00f4faf9 Bug 1054076 - Make imgFrame reference counted. r=tn 2014-08-22 13:49:54 -07:00
Benoit Jacob
b4866abdf9 Bug 1027251 - Fix or whitelist dangerous public destructors in image/ - r=jrmuizel 2014-06-18 22:29:00 -04:00
Michael Wu
e432807248 Bug 994081 - [2/3] Convert imgFrame to SourceSurfaces, r=seth 2014-04-19 21:28:38 -04:00
Seth Fowler
4eec5ac33b Bug 896268 - Use a stateless approach to synchronous image decoding. r=jdm 2013-12-17 14:04:24 -08:00
Seth Fowler
068727fb05 Bug 940714 - Add a RAII class to make synchronous decoding safer. r=tn 2013-11-20 17:21:51 -08: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
Ehsan Akhgari
61d8f84eb7 Bug 913619 - Minimize the #includes in image/src; r=jrmuizel
This patch was generated by running include-what-you-use on image/src,
and then removing the #include statements suggested by that tool, either
replacing them with forward declarations of the used names in headers,
or dropping the ones that were completely unnecessary, and then adding
new #include statements in other places that were implicitly relying on
some of the removed #include statements.
2013-09-07 09:01:08 -04:00
Seth Fowler
077d2e1740 Bug 869723 (Part 1) - Add imgIContainer::GetOrientation. r=joe sr=bz 2013-08-25 00:19:42 -07:00
Phil Ringnalda
71f5f2dff5 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
58c9cfc5f3 Bug 869723 (Part 1) - Add imgIContainer::GetOrientation. r=joe sr=bz 2013-08-24 17:31:14 -07: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
Joe Drew
39a4d06e8c Bug 716140 - Implement multithreaded decoding using a thread pool. r=seth 2013-03-01 18:17:24 -05:00
Trevor Saunders
ffdf7c54ff backout 275cd395f9fa and 9e4b22851976 bug 716140 for breaking linux tp on a CLOSED TREE 2013-03-24 15:43:20 -04:00
Joe Drew
aec962e2dd Bug 716140 - Implement multithreaded decoding using a thread pool. r=seth 2013-03-01 18:17:24 -05:00
Joe Drew
84324f86de 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
Joe Drew
baa3b6d269 Back out e1d71b13e35f (Bug 853337) for crashes on a CLOSED TREE 2013-03-22 21:13:24 -04:00
Joe Drew
0c669fd917 Bug 853337 - Make sure we MarkDirty on our image frames after every piece of decoding. r=seth
--HG--
extra : rebase_source : 097f3a7d59f7a59f5b8c1a6bcf7a0bce99235051
2013-03-22 18:47:25 -04:00