Commit Graph

963 Commits

Author SHA1 Message Date
Michael Wu
0292ca38de Bug 962667 - Don't treat quartz surfaces as optimized, r=jrmuizel 2014-01-31 17:57:19 -05:00
Benoit Jacob
4703621d85 Bug 964442 - Make CreateImage just take a plain format parameter - r=jrmuizel 2014-01-30 17:58:51 -05:00
Benoit Jacob
3ee7a2d643 Bug 962784 - Convert ImageTypes.h to typed enums - r=jrmuizel
find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(GRALLOC_PLANAR_YCBCR\|PLANAR_YCBCR\|SHARED_RGB\|CAIRO_SURFACE\|MAC_IOSURFACE\|REMOTE_IMAGE_BITMAP\|SHARED_TEXTURE\|REMOTE_IMAGE_DXGI_TEXTURE\|D3D9_RGB32_TEXTURE\)\($\|[^A-Za-z0-9_]\)/\1ImageFormat::\2\3/g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's|ImageFormat\:\:ImageFormat|ImageFormat|g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)STEREO_MODE_\(MONO\|LEFT_RIGHT\|RIGHT_LEFT\|BOTTOM_TOP\|TOP_BOTTOM\)\($\|[^A-Za-z0-9_]\)/\1StereoMode::\2\3/g'

find content/media media/webrtc gfx/layers gfx/tests dom/camera dom/plugins image/src layout/base -type f | grep -v 'gfx/layers/ImageTypes.h' | xargs sed -i 's|StereoMode\:\:StereoMode|StereoMode|g'
2014-01-30 17:58:49 -05:00
Benoit Jacob
dac63324d2 Bug 959380 - 5/5 - Make gfxMemoryLocation a typed enum - r=jrmuizel
find . -type f | grep -v '\./obj' | grep -v '\.hg' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)GFX_MEMORY_\(IN_PROCESS_HEAP\|IN_PROCESS_NONHEAP\|OUT_OF_PROCESS\)\($\|[^A-Za-z0-9_]\)/\1gfxMemoryLocation::\2\3/g'
2014-01-23 13:26:40 -05:00
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
Josh Matthews
53914a147c Bug 942164 - Store weak references to imgRequest consumers. r=seth 2013-12-12 16:17:35 -05:00
Timothy Nikkel
1abc94c6c8 Bug 958758. Refactor common image discard checks into one place. r=seth 2014-01-21 17:19:22 -06:00
Timothy Nikkel
e3a7f7858f Bug 958758. If we need to re-decode an image with different flags and shutting down the existing decoder has caused us to finish decoding we need to discard the image so we can create a new decoder with the new flags. r=seth 2014-01-21 17:19:20 -06:00
Jeff Muizelaar
3c184eea41 Bug 961783. Remove unneeded DDB optimization. r=vlad
As far as I can tell we always draw images to dc's that are in system memory.
In this case there's no upside to having ddb and a potential downside because
we have to do a readback from gpu into system memory.

--HG--
extra : rebase_source : e536721adc1de2bcff3300ee29c2d1c4b8c15ac0
2014-01-20 12:02:34 -05:00
Matt Woodrow
c7dd607e84 Bug 950553 - Use Moz2D for drawing in OrientedImage. r=seth 2014-01-20 14:17:38 +13:00
Timothy Nikkel
7dc393894b Bug 958806. If our decoder shutdown intent was "not needed" then we shouldn't try to request a full decode of the image, it was not needed. r=seth 2014-01-17 23:14:46 -06:00
Ali Akhtarzada
09cc9a436c Bug 959123 - Implement CairoImage::GetAsSourceSurface. r=nical
Deprecate CairoImage::Data::mSurface and add an mSourceSurface.
Also change all the callers of CairoImage::SetData to set the
SourceSurface as well.

Also change scope of CairoImage::mSource to private
2014-01-17 11:22:09 -05:00
Michael Wu
26b9fe619e Bug 958001 - Remove mNeverUseDeviceSurface from imgFrame, r=jrmuizel 2014-01-17 08:57:51 -05:00
Timothy Nikkel
6af45f3d96 Bug 943803. Don't try to forcibly discard an image if we have an existing decoder. r=jmuizelaar 2014-01-16 16:45:49 -06:00
Benoit Jacob
873406e3f0 Bug 958375 - 8/9 - Make remaining Moz2D enums typed - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:17 -05:00
Benoit Jacob
535a216635 Bug 958375 - 4/9 - Make SurfaceFormat a typed enum - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Neil Rashbrook
811e1e96dd Bug 514173 Make literal string buffers shareable r=dbaron,ehsan,bholley 2014-01-08 20:51:38 +00:00
Ehsan Akhgari
eaa7491d77 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Jeff Walden
d6fc734554 Bug 950700 - Make EXIF parsing use Endian.h functions. r=seth
--HG--
extra : rebase_source : 5962dfbfb53dd06d4a7228482a4f84f34e00cb9f
2013-12-16 10:34:27 -05:00
Nicholas Nethercote
ed423fbdef Bug 955942 (part 2) - Remove MemoryUniReporter. r=mccr8.
--HG--
extra : rebase_source : 9d70016cb19637ffece6409a184bf41d574cc6b4
2013-12-07 22:09:10 -08:00
Nicholas Nethercote
a228c41d0b Bug 955942 (part 1) - Remove unnecessary nsIMemoryReporter qualifiers from UNITS_* and KIND_* constants. r=mccr8.
--HG--
extra : rebase_source : f760568c08af03d9fec316bf95e7d4388078a03d
2013-12-11 11:59:39 -08:00
Ms2ger
98586cdbc1 Bug 950143 - Remove the implicit conversion operator from nsIntSize to IntSize; r=roc 2013-12-31 10:06:12 +01:00
Seth Fowler
61c24f77cf Bug 862909 (Part 3) - Assert that we own the decoding mutex in CurrentStatusTracker. r=tn 2013-12-17 14:04:32 -08:00
Seth Fowler
0150bf7c52 Bug 862909 (Part 2) - Make sure we hold the decode lock when calling DoError. r=tn 2013-12-17 14:04:32 -08:00
Seth Fowler
27ba9b162b Bug 862909 (Part 1) - Call CurrentStatusTracker() with the decode lock held in OnImageDataComplete. r=tn 2013-12-17 14:04:32 -08:00
Seth Fowler
345d69d471 Bug 943803 - Use a reentrant monitor instead of unlocking for notifications in RasterImage. r=jdm 2013-12-17 14:04:31 -08: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
5a13ad7013 Bug 950293 (Part 1) - Fix handling of little-endian EXIF data. r=tn 2013-12-16 14:11:10 -08:00
Trevor Saunders
c2b2fcd3d4 bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj 2013-12-12 20:50:01 -05:00
Tor Arvid Lund
ad63ca899f Bug 929513 - Change gfxSize references to gfx::Size r=nical 2013-12-13 18:31:53 +01:00
Jonathan Watt
a9c5083a32 Bug 944442 - DeCOMify imgIContainer::GetFrame. r=seth
--HG--
extra : rebase_source : 612c1923f3ed8a01fc30f2d306b4682e585e53fe
2013-12-13 08:34:24 +00:00
Wes Kocher
b2ab2ca23b Backed out changeset 372f481bc7ad (bug 942164) for leaks on a CLOSED TREE 2013-12-12 14:44:09 -08:00
Bill McCloskey
057339d729 Bug 924366 - Animated GIFs shouldn't loop before they have finished decoding (r=seth) 2013-12-12 14:17:41 -08:00
Josh Matthews
6a2d35f8af Bug 942164 - Refcount imgRequest consumers. r=seth 2013-12-12 16:17:35 -05:00
Ehsan Akhgari
d9cd92fa17 Bug 947736 - Build modules/libpref/ in unified mode; r=bsmedberg 2013-12-10 18:10:01 -05:00
Martin Stransky
f09c774110 Bug 941595 - Build with system-cairo is broken. r=glandium 2013-12-10 10:37:03 -05:00
Nicholas Nethercote
cc1728f40f Bug 947802 (part 2) - Replace enumerateReporters() with getReportsForThisProcess(). r=mccr8.
--HG--
extra : rebase_source : 1c70e838e3600745f69c5772a084398f78d4c477
2013-12-01 16:29:37 -08:00
Ali Akhtarzada
d1cad35f66 Bug 890743 - Display 0-delay, single loop GIFs instantly. r=seth
Do not artificially create a frame delay for GIF files
that do not loop and have an inter-frame delay of 0. Move timeout
calculation to FrameBlender and only access raw timeout of
imgFrame from within FrameBlender.

--HG--
extra : rebase_source : 1a568f16a2980d3d14621869c6b536d054088805
2013-12-06 10:45:24 +01:00
Nicholas Nethercote
e02408b49d Bug 947798 (part 2) - Remove MemoryMultiReporter, because it's no longer helpful. r=mccr8.
--HG--
extra : rebase_source : f6f74de69d8c1d79d38b84b19dff5439efc41075
2013-12-07 21:39:47 -08:00
Nicholas Nethercote
67495eb7f8 Bug 947798 (part 1) - Rename NS_MEMORY_REPORTER_MALLOC_SIZEOF_FUN as MOZ_DEFINE_MALLOC_SIZE_OF. r=mccr8.
--HG--
extra : rebase_source : ec09d4c31264c15befb020375bf001a1ad1df6b8
2013-12-07 21:38:32 -08:00
Birunthan Mohanathas
58325c73be Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
--HG--
rename : mfbt/Util.h => mfbt/ArrayUtils.h
2013-12-08 21:52:54 -05:00
Birunthan Mohanathas
bd0f161288 Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo 2013-12-08 21:52:33 -05:00
Nicholas Nethercote
e9715bfc41 Bug 943660 (part 2) - Remove remnants of Remove nsIMemoryReporter::name.
--HG--
extra : rebase_source : 900bd1c641b26623cccf14d952b5387223b489eb
2013-12-03 20:01: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
Seth Fowler
e7e7614541 Bug 940142 - Add a lightweight generic hash key class to nsHashKeys.h. r=bsmedberg 2013-12-03 16:23:32 -08:00
Jacek Caban
c6f4ebd28d Bug 945245 - Fixed misc char16_t/wchar_t mismatches. r=ehsan
--HG--
extra : rebase_source : fcab74b295b513f4185cf9c12f31ebaddb7c8e0e
2013-12-03 16:09:50 +01:00
Ehsan Akhgari
102821615d Bug 945589 - Add include guards to ScriptedNotificationObserver.h 2013-12-03 08:20:53 -05:00
Ms2ger
cf53814bbc Merge mozilla-inbound to mozilla-central. 2013-11-29 09:54:12 +01:00
Ms2ger
b7b25b5303 Bug 937224 - Part d: Move LOCAL_INCLUDES to moz.build in image/; r=mshal 2013-11-28 15:17:27 +01:00
Nicholas Nethercote
fc13148f36 Bug 936964 (part 2, attempt 2) - Make SurfaceCache ref-counted. r=seth.
--HG--
extra : rebase_source : 16f179ea7d83389ff2b5bb10d2ef2f609b0c7101
2013-11-25 15:57:43 -08:00