Commit Graph

750 Commits

Author SHA1 Message Date
Maria Grazia Alastra
29ebfeceb8 Bug 331566 - Change idl interfaces to use @throws instead of @return NS_. r=bsmedberg 2013-05-16 08:26:55 -04:00
Ryan VanderMeulen
2a4025d688 Backed out 5 changesets (bug 817700) for Ubuntu32 PGO mochitest-1 timeouts on a CLOSED TREE.
Backed out changeset fad852b5819a (bug 817700)
Backed out changeset 7a3535c6e652 (bug 817700)
Backed out changeset 44a748256eca (bug 817700)
Backed out changeset 06ae8895852b (bug 817700)
Backed out changeset d6bddc947d38 (bug 817700)
2013-05-15 15:25:47 -04:00
Stephen Pohl
75bff40158 Bug 817700 - Fix animSVGImage test. r=roc 2013-05-15 08:21:25 -04:00
Stephen Pohl
9b6e58b92b Bug 817700 - Make <canvas>.toBlob run asynchronously - imglib changes. r=seth 2013-05-15 08:21:22 -04:00
Seth Fowler
736dd852cb Bug 867009 (Part 1) - Remove imgFrame::Extract. r=joe 2013-05-13 14:54:40 -07:00
Joey Armstrong
0d49db0381 bug 869143: phase2 cleanup for XPCSHELL_TEST conversion. r=mshal 2013-05-13 16:24:07 -04:00
Robert O'Callahan
9a58262167 Bug 865546 - Propagate FLAG_CLAMP through RasterImage::DrawWithPreDownscaleIfNeeded. r=joedrew 2013-05-09 13:42:12 -04:00
Ryan VanderMeulen
3a1c7fb6c7 Merge m-c to inbound. 2013-05-09 13:21:14 -04:00
Michael Wu
f4c0d1ead7 Bug 870375 - back out bug 869011 for startup crashes on devices 2013-05-09 13:01:22 -04:00
Michael Wu
1ec46fee8a Backed out changeset 7e4d9be02b8f (bug 869011) for causing bug 870375 2013-05-09 13:00:14 -04:00
Joe Drew
099014057f Bug 869011 - Use the correct shader for RGBX gralloc textures. r=bjacob
--HG--
extra : rebase_source : cb20795caae616cbbaa7dcbe568d51afcc155e35
2013-05-06 14:27:37 -04:00
Joe Drew
624d5c84bc Bug 868871 - Don't do any invalidation from under RasterImage::GetImageContainer(), which is called while painting. r=seth 2013-05-09 09:36:57 -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
ISHIKAWA, Chiaki
c68b246c10 Bug 866463 - Remove the initial incorrect assignment. r=joe 2013-05-08 09:14:26 -04: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
Benoit Jacob
b59d90a877 Bug 868556 - We are not using gralloc on b2g anymore - r=vladv 2013-05-03 22:57:18 -04:00
Seth Fowler
acfe54723d Bug 859377 (Part 5) - Use CreateOffscreenDrawTarget instead of CreateOffscreenSurface. r=joe
--HG--
extra : rebase_source : ff31b47bcfd2cc6c733903a885e08ce7add358dd
2013-05-07 10:47:42 -07:00
Iivari Äikäs
c0b2ce3bd9 Bug 617897 - Replace calls to AppendASCII('*') with Append('*'). r=dougt 2013-05-07 10:25:21 -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
Timothy Nikkel
750010056f Bug 866959. Make sure to initialize mHasBeenDecoded in all constructors of imgStatusTracker. r=seth 2013-04-30 18:35:00 -05:00
Seth Fowler
b7932cdb35 Bug 859377 (Part 4) - Make ClippedImage use gfxImageSurfaces on Windows. r=me 2013-04-30 16:28:25 -07:00
Timothy Nikkel
d3ecc9122e Bug 866259. Vector images need to send the unlocked draw notification too because it is also responsible for managing the number of animation consumers. r=joedrew 2013-04-29 14:10:16 -05:00
Joey Armstrong
12356a4c50 bug 844655: Port XPCSHELL_TESTS to moz.build as XPCSHELL_TESTS_MANIFESTS 2013-04-29 14:49:00 -04:00
Joe Drew
65dee0d111 Bug 853564 - Deal with outstanding decoding-done notifications from within RequestDecode so we don't have to wait for the event loop. r=seth
--HG--
extra : rebase_source : 256eb11410196dd09319b02b20111ea87c4b57d6
2013-04-26 16:43:17 -04:00
Timothy Nikkel
619b362fb0 Bug 865993. For layerized images GetImageContainer has the same meaning as Draw()'ing the image, and Draw will not be called on the image, so send the unlocked draw notification there too. r=joedrew 2013-04-26 14:58:17 -05:00
Aryeh Gregor
e78504c9a9 Bug 859817 - Remove implicit conversions from raw pointer to already_AddRefed; r=Ms2ger 2013-04-22 14:15:59 +03:00
Seth Fowler
a592e45880 Bug 853774 - RequestBehaviour must handle null owners. r=joe 2013-04-25 20:30:29 -07:00
Seth Fowler
b49ac0cc45 Bug 859377 (Part 3) - Make ClippedImage cache temporary surfaces. r=joe
--HG--
extra : rebase_source : 060615904e1b416f84b4d6ecf6329841896f13da
2013-04-25 15:58:32 -07:00
Seth Fowler
29b65cd545 Bug 859377 (Part 1) - Add imgIContainer::GetFrameIndex. r=joe sr=bz
--HG--
extra : rebase_source : e81992f8bead31b273f4afb4fb589849ec1c5218
2013-04-25 15:58:20 -07:00
Joe Drew
730ac999c6 Bug 832400 - Add an imgIContainer flag HIGH_QUALITY_SCALING that controls whether to use the high quality scaler, and only use it when we're drawing to a window. r=tn 2013-04-25 18:08:58 -04:00
Joe Drew
19c25420e7 Bug 863975 - Crashtest. r=seth
--HG--
extra : rebase_source : 2816b2f65b49091914c643357275c169911a4b2f
2013-04-25 16:35:38 -04:00
Joe Drew
cc6d077bab Bug 863975 - Handle the situation that we're left mid-frame when decoding a multi-frame image. r=seth
--HG--
extra : rebase_source : e485eb48a615f3e35e4e5592d0f37604402142f8
2013-04-25 16:35:23 -04:00
Joe Drew
1ccb73a4ca Bug 863958 - Crashtest. r=seth
--HG--
extra : rebase_source : 5f1fa4cd01aba2b1a9b07a8120711b58d36f5ddf
2013-04-25 16:35:03 -04:00
Joe Drew
aa001de653 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
a6ca4bb3d6 Bug 863970. Remove some dead code in imagelib. r=seth 2013-04-24 23:37:00 -05:00
Seth Fowler
074f862f7f Bug 863319 - Improve assertions in browser_image mochitest. r=joe
--HG--
extra : rebase_source : bf323152a21613bf20d1ff2456520346bf1460b1
2013-04-19 13:47:36 -07:00
Seth Fowler
967dc3d20c Bug 854287 - Don't send partial invalidations for images which have already been decoded. r=joe 2013-04-18 16:31:46 -07:00
Joe Drew
b901b1165d Bug 855923 - Set the multithreaded image decoding thread pool's idle thread limit in addition to the regular thread limit. r=seth 2013-04-23 10:06:56 -04: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
d52eefdf94 Bug 860149 - Mark ourselves as doing synchronous decoding when writing directly to decoders in AddSourceData. r=seth
--HG--
extra : rebase_source : 1d48d2ba8bc880bb9a52fd1f9f6a95849f12992a
2013-04-17 20:05:49 -04:00
Joe Drew
4a04b72ebe Bug 857367 - Remove DecodePool::mShuttingDown, which is unnecessary. r=seth
--HG--
extra : rebase_source : a323f90de5d1616f50a6d9aa717c7b423f230c92
2013-04-17 20:05:19 -04:00
Joe Drew
9a4bbfb986 Bug 857876 - If we're not storing source data, explicitly shut down the decoder when the image data is complete. r=seth 2013-04-16 15:55:45 -04:00
Mike Shal
24b4056720 Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
Nicholas Nethercote
500e72cfdf Bug 859657 (part 2) - Remove nsIMemoryMultiReporter.explicitNonHeap because it's more trouble than it's worth; also remove the "explicit" single reporter. r=jlebar.
--HG--
extra : rebase_source : a146536a3dd0043082bcb1c26d980c4c6d4c0730
2013-04-11 20:52:32 -07:00
Luis de Bethencourt
b3baafbd60 Bug 861324 - Remove unneeded mDecoder null check after usage. r=joedrew 2013-04-15 22:05:46 -04:00
Seth Fowler
431afdec6e Bug 859718 - Don't assume we have mImageRequest in RasterImage::IsDecodeFinished. r=joe
--HG--
extra : rebase_source : ec57c42b17398f0c90d19f35834e389444059b7f
2013-04-15 14:34:18 -07:00
Andrew McCreight
4ab5ad00a6 Bug 853707 - Fix bogus assert in StaticBehaviour::SetOwner. r=joedrew 2013-04-02 17:48:42 -07:00
Luis de Bethencourt
7afd29fc08 Bug 859158 - Remove unneeded ifdef DEBUG_joe. r=joedrew 2013-04-12 16:25:04 -04:00
Luis de Bethencourt
bba440e753 Bug 859158 - Removed unused ifdef DEBUG in imgRequest.cpp. r=joedrew 2013-04-12 16:25:04 -04:00
Shih-Chiang Chien
e142faf203 Bug 857831 - Remove WBMP content sniffer. r=jmuizelaar 2013-04-11 07:48:09 -04:00
Patrick McManus
8257a56ede bug 857906 progress indicator spinning on multipart motion jpeg r=duell sr=bz
--HG--
extra : rebase_source : 6b3beea6f6bb91e21c37e6dd01e5c6445317f994
2013-04-09 13:38:48 -04:00
Masatoshi Kimura
2ca51c4f79 Bug 858224 - Remove most MSVC exemptions for FAIL_ON_WARNINGS. r=ted feedback=dholbert 2013-04-07 13:45:34 +09:00
Xin Zhang
125af2229f Bug 849764 - Replace removeObserver() calls with three params with two in image dir. r=mak 2013-04-06 14:46:35 -04:00
Seth Fowler
82e2e9dc36 Bug 857623 - Ensure we always call PostFrameStop before PostDecodeDone in nsGIFDecoder2.cpp. r=tn 2013-04-05 18:02:39 -07:00
Seth Fowler
53b25d147a Bug 826093 (Part 5) - Remove imgIContainer::ExtractFrame. r=joe, sr=bz
--HG--
extra : rebase_source : fcf5028a8f91f28306ca009cbe41f48794f19291
2013-04-05 14:15:05 -07:00
Seth Fowler
8a31a54638 Bug 826093 (Part 2) - Create a static utility class for image operations. r=joe, sr=bz
--HG--
extra : rebase_source : 65b4698483ab19005314913583ff0e21931d81f7
2013-04-05 14:14:34 -07:00
Seth Fowler
f0e2aed71d Bug 826093 (Part 1) - Add ClippedImage. r=joe
--HG--
extra : rebase_source : 2a7bb09ee0b1c221b4b57c5d201c282f5c6f52fb
2013-04-05 14:14:32 -07:00
Phil Ringnalda
171a6dc234 Backout 051cf1c1449c:521215a7b32e (bug 826093) for Android reftest failure 2013-04-04 21:06:58 -07:00
Seth Fowler
f5dc943e0f Bug 826093 (Part 5) - Remove imgIContainer::ExtractFrame. r=joe, sr=bz 2013-04-04 19:06:42 -07:00
Seth Fowler
808ec28f01 Bug 826093 (Part 2) - Create a static utility class for image operations. r=joe, sr=bz 2013-04-04 19:06:42 -07:00
Seth Fowler
71d496d445 Bug 826093 (Part 1) - Add ClippedImage. r=joe 2013-04-04 19:06:41 -07:00
Seth Fowler
c81797feeb Bug 857367 - Make it safe to call RasterImage::DecodePool::RequestDecode off the main thread. r=tn
--HG--
extra : rebase_source : c7c91e08ca0ca200d5c3c4cb24475a6445748842
2013-04-04 18:01:41 -07:00
Seth Fowler
fa4b5e96dc Bug 856602 - RasterImage::DecodeJob should not reschedule itself if it can't make progress. r=tn
--HG--
extra : rebase_source : b8a9b535771f2bb607b8fbf1244ba2248452ac60
2013-04-04 17:57:40 -07:00
Seth Fowler
1326a065e7 Bug 856486 (Followup 2) - Make sure we use the buffered frame, when appropriate, for all callers of GetDrawableImgFrame. r=me 2013-04-04 15:46:08 -07:00
Seth Fowler
42d8b18a48 Bug 856486 (Followup) - Make sure we use the buffered frame, when appropriate, for all callers of GetDrawableImgFrame. r=me 2013-04-04 15:05:19 -07:00
Ms2ger
a1093b2662 Merge m-c to m-i. 2013-04-04 14:15:56 +02:00
Ms2ger
8b70b9fbc6 Bug 856973 - Outparamdel NS_New{In,Out}putStreamReadyEvent; r=ehsan 2013-04-04 09:05:18 +02:00
Seth Fowler
526fc8457a Bug 857275 - Remove RasterImage::FrameUpdated. r=jrmuizel
--HG--
extra : rebase_source : 4d8209630bb8da562530a817f43cfd49243a379a
2013-04-02 16:42:20 -07:00
Jonathan Kew
a768541239 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
Seth Fowler
e3127451ca Bug 856486 (Part 2) - Buffer the last fully-decoded frame for multipart images. r=jrmuizel 2013-04-03 19:19:38 -07:00
Seth Fowler
c0cee126d2 Bug 856486 (Part 1) - Avoid asserts triggered by rapid off-main-thread decoding. r=jrmuizel 2013-04-03 19:18:42 -07:00
Robert Lickenbrock
347435896b Bug 854803 - Part 2: Don't try to enqueue more decoding from DecodeDoneWorker. r=seth
--HG--
extra : rebase_source : 0d46455743f02d58c5615c72afb90bba13d505bc
2013-04-03 16:34:58 -07:00
Robert Lickenbrock
bd680255a3 Bug 854803 - Part 1: Account for more decoder state in RasterImage::IsDecodeFinished(). r=seth
--HG--
extra : rebase_source : 7fa2c43c5146eca831d5775d1ba4d0c665404626
2013-04-03 16:34:56 -07:00
Kyle Machulis
f5e3aadf0b Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Jonathan Kew
b29a487eef bug 818927 part 2 - refactoring - create a GetDPIScale method in gfxWindowsPlatform, and use this to replace GetDeviceCaps(hdc, LOGPIXELSY) in widget code. r=jimm 2013-04-01 10:10:28 +01:00
Kyle Machulis
d2b6e6e01a 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
5663b98bc5 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
Luis de Bethencourt
f60b1b9021 Bug 855712 - Remove trailing whitespaces in image/src/*cpp. r=jmuizelaar 2013-03-29 16:14:19 -04:00
Mina Almasry
5ffb7a55a5 Bug 582783 - Move windows.h include and undef LoadImage to gfxWindowsSurface.h. r=joe 2013-03-25 17:53:54 -04:00
Shih-Chiang Chien
d6896d64e7 Bug 852053 - Support WBMP on FirefoxOS only. r=joe 2013-03-20 14:03:07 +08:00
Ryan VanderMeulen
268da07311 Backed out changesets 957f2b35ce83:1799cffbba63 (bug 826093) for Android reftest-2 failures (again) on a CLOSED TREE. 2013-03-26 21:56:03 -04:00
Seth Fowler
52c1f64ee9 Bug 826093 (Part 5) - Remove imgIContainer::ExtractFrame. r=joe, sr=bz 2013-03-26 16:29:13 -07:00
Seth Fowler
56e1f531fa Bug 826093 (Part 2) - Create a static utility class for image operations. r=joe, sr=bz 2013-03-26 16:29:13 -07:00
Seth Fowler
27e5219a3b Bug 826093 (Part 1) - Add ClippedImage. r=joe 2013-03-26 16:29:12 -07:00
Matt Brubeck
095755a725 Bug 795376 - Followup to fix bustage from incorrect conflict resolution on a CLOSED TREE 2013-03-26 15:42:02 -07:00
Luis de Bethencourt
b086e952da Bug 795376 - Use high-quality scaler for upscaling raster images [r=joedrew] 2013-03-24 12:37:21 -04:00
Ryan VanderMeulen
70b9859a7a Backed out changesets 4b97cab51e59:5e573640e390 (bug 826093) for Android reftest-2 failures on a CLOSED TREE. 2013-03-26 16:52:17 -04:00
Seth Fowler
5856f1256f Bug 826093 (Part 5) - Remove imgIContainer::ExtractFrame. r=joe, sr=bz 2013-03-26 11:56:47 -07:00
Seth Fowler
ddfbe130e0 Bug 826093 (Part 2) - Create a static utility class for image operations. r=joe, sr=bz 2013-03-26 11:56:46 -07:00
Seth Fowler
1b5d70dfb6 Bug 826093 (Part 1) - Add ClippedImage. r=joe 2013-03-26 11:56:46 -07:00
Benoit Girard
6ed333dbb5 Bug 851611 - Part 3: Rename headers. r=jrmuizel
--HG--
rename : tools/profiler/sampler.h => tools/profiler/GeckoProfiler.h
rename : tools/profiler/sps_sampler.h => tools/profiler/GeckoProfilerImpl.h
extra : rebase_source : 6ea7c660764a4390cdd8dd91561fff1d7bad6035
2013-03-18 15:25:50 +01:00
Benoit Girard
bbe4c3065e Bug 851611 - Part 2: Update profiler calls. r=jrmuizel
--HG--
extra : rebase_source : f76accc3d3dd86c75cb3e9750734f23ec9c29941
2013-03-16 00:47:02 -04:00
Joe Drew
42ae32c591 Bug 716140 - Control multithreaded encoding with a pref. r=seth 2013-03-01 18:42:08 -05: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
898365becb Bug 716140 - Control multithreaded encoding with a pref. r=seth 2013-03-01 18:42:08 -05: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
60c742750a 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
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
Wes Johnston
6a18fa33b2 Bug 419588 - Add support for a resolution media fragment. r=seth 2013-03-22 16:12:40 -07: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
Joe Drew
5bbf9012f1 Bug 853390 - Notify our listeners after creating decoders to ensure onload is correctly blocked. r=seth
--HG--
extra : rebase_source : f846da6a01b95e2ba389689bb97cb9242fa09a4f
2013-03-22 18:46:20 -04:00
Seth Fowler
a8c3cf1507 Bug 851416 - Ensure SVGRootRenderingObserver always gets added back to the rendering observer list. r=dholbert
--HG--
extra : rebase_source : e945338503a9dbaf2ad4b4925c8f8993555e605c
2013-03-21 11:22:42 -07:00
Mike Shal
f290401a73 Bug 852534 - Remove GRE_MODULE from Makefile.in; r=gps 2013-03-21 08:41:00 -07: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
c0e3cde920 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
bd410dea5e Bug 716140 - Set metadata directly on frames. r=seth
--HG--
extra : rebase_source : d3899816bb6b5f816955a53c2cd7ad1bf8ad788a
2013-02-27 14:23:08 -05:00
Joe Drew
68d9e6fba2 Bug 716140 - Make SVG images handle the new world order. r=dholbert
--HG--
extra : rebase_source : 988402c76d1d260148a25d0b3f91e4bd1639efe6
2013-02-11 19:34:20 -05:00
Joe Drew
b1d0cf2436 Bug 716140 - Handle errors correctly. r=seth
--HG--
extra : rebase_source : 97f714b139508092ef5a733313f10e281b0bc6fe
2013-02-01 20:06:34 -05:00
Joe Drew
b8cc9b2e25 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
78a9030c74 Bug 716140 - Run a size decode even if we're not storing source data. r=seth
--HG--
extra : rebase_source : 732ed17d8edec893fd6fdc8dc12c1d4a8bcbc330
2013-02-01 14:36:39 -05:00
Joe Drew
d015e30726 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
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
4924f4a957 Bug 716140 - Count complete frames in Decoder::Finish(), not just whatever frame objects mImage has. r=seth
--HG--
extra : rebase_source : 2466ec5e5bc64d8d60190cdc4805eaa73bf695af
2013-02-07 17:23:44 -05:00
Joe Drew
6a57c56f96 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
5ccfb6adbd Bug 716140 - Create a clone imgStatusTracker on every asynchronous decoding event, and replay the difference between that imgStatusTracker and the image's current status tracker when decoding completes. r=seth
* * *
[mq]: test-fixes
* * *
[mq]: undefer-on-remove
* * *
imported patch notify-in-sequence

--HG--
extra : rebase_source : 01a495a64cb4b6a8076a3550c254ddd804f53e80
2013-01-18 16:47:18 -05:00
Joe Drew
0fef6cede2 Bug 716140 - Handle discarding specially so it gets notified synchronously. r=seth
--HG--
extra : rebase_source : 1bd66dcec4925b486af0905dbd07286bb3ae729e
2013-02-07 17:22:38 -05:00
Joe Drew
f8ff066e90 Bug 716140 - Heap-allocate DecodeRequests so we know when we're still decoding an image. r=seth
--HG--
extra : rebase_source : c03271201f48efb29972a1b6834036638029810c
2013-01-18 16:47:18 -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
4799138274 Bug 716140 - Calculate the difference between two imgStatusTrackers, notify for that difference, and apply it to the source. r=seth
This patch adds two semi-unrelated functions, currently unused:
 - SyncAndSyncNotifyDifference, which synchronizes the current
   imgStatusTracker to have the state of the argument imgStatusTracker, and
   notifies our observers about the new state;
 - CloneForRecording, which will let us create a new imgStatusTracker based on
   the current state for use with SyncAndSyncNotifyDifference.

--HG--
extra : rebase_source : 2b9072e38f9dabf4d2cbe0d7c129b44c81743591
2013-01-18 16:47:17 -05:00
Joe Drew
b9b410659c Bug 716140 - Factor out notification of a particular imgStatusTracker state into its own function. r=seth
--HG--
extra : rebase_source : ba72f5c3aa1b47d8c6f36d1c2d0202d55671a1d2
2013-01-18 16:47:17 -05:00
Joe Drew
50b73b1542 Bug 716140 - Make an (unused) imgDecoderObserver implementation that doesn't notify proxies when it gets an observer function call, and rename the old version (which will be going away). r=jlebar
--HG--
extra : rebase_source : 4e09ccd83f0a4a26277fd65916c175189c1b8ba6
2013-01-02 12:00:50 -05:00
Joe Drew
8eb80276d5 Bug 716140 - Explicitly record whether an image is animated. r=seth
--HG--
extra : rebase_source : 741a16bd8c5cf30af839629deeb0274638b8720c
2013-01-18 16:47:17 -05:00
Joe Drew
3a7f842de3 Bug 716140 - Track the invalid area for the latest frame from within imgStatusTracker. r=seth
--HG--
extra : rebase_source : 1a1197b63279a52eaf11faefa199f538b4f960f7
2013-01-18 16:47:17 -05:00
Joe Drew
528e9065a7 Bug 716140 - Create and Send OnStartFrame when a frame starts. r=seth
--HG--
extra : rebase_source : 7af770a5cc28c2a6d199e632c706330a0d582659
2013-01-18 16:47:17 -05:00
Joe Drew
f1f85edfb5 Bug 716140 - imgDecoderObserver::OnDataAvailable is simply a duplicate of imgDecoderObserver::FrameUpdated, so remove it. r=seth
--HG--
extra : rebase_source : 90d828b429a6dd629b76912a4a58c802d2318d34
2013-01-18 16:47:17 -05:00
Joe Drew
bdef596390 Bug 716140 - Remove explicit imgStatusTracker::mBlockingOnload, as it's implied by stateBlockingOnload. r=khuey
--HG--
extra : rebase_source : 4368c09438bd6cb288a0c845ff20cb8a3f0c5560
2012-12-20 11:49:26 -05:00
Joe Drew
a063791c4c 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
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
Gregory Szorc
94ec89296d 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
ea1d9b8ba7 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Trevor Saunders
1f7d35c3e6 bug 852379 - remove unneeded prlock.h includes r=Ms2ger 2013-03-16 22:46:40 -04:00
Timothy Nikkel
f081ea6e86 Bug 851785. Stop RasterImage::FrameRect from initiating a decode. r=joe
imgStatusTracker::SyncNotify is the only caller and it does not need a decode to be initiated.

This prevents us from kicking off a decode for almost every image we download.
2013-03-18 16:10:28 -05:00
Timothy Nikkel
cf51645b9f Bug 851785. Stop expecting the image to be decoded in async_load_tests.js because it never does anything that would require a decode to happen. r=joe 2013-03-18 16:10:26 -05:00
Ed Morley
4a0f5f39ca Backed out changeset c75481a07302 (bug 851611) 2013-03-18 14:10:35 +00:00
Ed Morley
47bc17c5f5 Backed out changeset d195190adc48 (bug 851611)
--HG--
rename : tools/profiler/GeckoProfiler.h => tools/profiler/sampler.h
rename : tools/profiler/GeckoProfilerImpl.h => tools/profiler/sps_sampler.h
2013-03-18 14:10:30 +00:00
Benoit Girard
90f13c7e56 Bug 851611 - Part 3: Rename headers. r=jrmuizel
--HG--
rename : tools/profiler/sampler.h => tools/profiler/GeckoProfiler.h
rename : tools/profiler/sps_sampler.h => tools/profiler/GeckoProfilerImpl.h
extra : rebase_source : 552fe1d3ff61d15b264aaf86f7c8cb4f4eff69d1
2013-03-18 14:41:02 +01:00
Benoit Girard
95a5b4c35f Bug 851611 - Part 2: Update profiler calls. r=jrmuizel
--HG--
extra : rebase_source : 3032aaf7e50cdf9c350da688ec34e50a695fc7ca
2013-03-16 00:47:02 -04:00
Gregory Szorc
02d1d31696 Bug 844635 - Part 3: Remove empty Makefile.in files; r=glandium 2013-03-17 18:01:25 -07:00
Ms2ger
69401c3aeb Bug 845374 - Part s: Stop including nsTArray.h in nsContentUtils.h; r=khuey 2013-03-17 08:55:16 +01:00
Ms2ger
24bcddcf77 Bug 845374 - Part l: Stop including nsIDocument.h in nsContentUtils.h and fix two nits; r=khuey 2013-03-17 08:55:15 +01:00
Ms2ger
4ceec9db31 Bug 845374 - Part g: Stop including nsContentSink.h in nsContentUtils.h; r=khuey 2013-03-17 08:55:13 +01:00
Shih-Chiang Chien
1daa251514 Bug 847310 - Test cases for WBMP decoder. r=joe 2013-03-08 16:04:51 +08:00
Shih-Chiang Chien
3c0cec21b9 Bug 847310 - WBMP decoder implementation. r=joe 2013-03-08 11:17:29 +08:00
Gregory Szorc
56a7634c1c Merge mozilla-central into build-system 2013-03-13 08:20:09 -07:00
Gregory Szorc
3d694a85c0 Merge mozilla-central into build-system
dom/interfaces/svg/Makefile.in and dom/media/Makefile.in had merge
conflicts. They were resolved by hand. The former needed 2 IDLs removed.
The latter had a context conflict for EXPORTS_NAMESPACES.
2013-03-12 13:04:55 -07:00
Jim Mathies
a767e2ca23 Bug 848963 - disable bug415761 reftest on Win8 due to bug 850194. r=bbondy 2013-03-12 09:57:52 -05:00
Gregory Szorc
629b5d86c6 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