Birunthan Mohanathas
94998cf5fe
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Nathan Froyd
55609900e0
Bug 1218488 - clarify buffer ownership for nsICanvasRenderingContextInternal::GetBuffer; r=Bas,baku
...
This patch started life as making ImageEncoder.cpp:EncodingRunnable not
use nsAutoArrayPtr, but the API effects rippled out from there. On the
whole, I think using UniquePtr throughout has made the code clearer.
2015-10-26 14:31:12 -04:00
Nathan Froyd
e4e2da55c9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nathan Froyd
5254890206
Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
...
This commit was generated using the following script, executed at the
top level of a typical source code checkout.
# Don't modify select files in mfbt/ because it's not worth trying to
# tease out the dependencies currently.
#
# Don't modify anything in media/gmp-clearkey/0.1/ because those files
# use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
grep -v 'mfbt/RefPtr.h' | \
grep -v 'mfbt/nsRefPtr.h' | \
grep -v 'mfbt/RefCounted.h' | \
grep -v 'media/gmp-clearkey/0.1/' | \
xargs perl -p -i -e '
s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#; # handle strange #includes
'
# |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'
# RefPtr.h used |byRef| for dealing with COM-style outparams.
# nsRefPtr.h uses |getter_AddRefs|.
# Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Nicholas Nethercote
f7e8a9e813
Bug 1207741 - Remove gfxIntSize. r=nical.
...
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.
2015-09-23 11:49:05 -07:00
Lee Salzman
25d43263df
Bug 1159273 - Fix out-dated Cairo usage that may fail to build or work properly when system Cairo is involved. r=jrmuizel
2015-05-13 12:00:30 +09:00
Jim Mathies
0ef33eb005
Bug 1132874 - Simplify PPluginWidget protocol handling, and avoid sending async messages from the parent. Addresses a problem with sub protocols that are torn down randomly from either side of the connection. r=aklotz
2015-04-07 08:17:27 -05:00
Milan Sreckovic
ae310469c2
Bug 1140113 - Catch direct (and some indirect) callers of CreateDrawTarget* and deal with failure. r=mstange
2015-03-09 15:48:20 -04:00
Bas Schouten
3b799ecd25
Bug 1136487: Destroy the compositors for all windows when any window detects a device reset. r=jrmuizel
2015-02-25 18:04:18 +00:00
Jim Mathies
7cb466492e
Bug 1095754 - Provide a way to force an update on a plugin window asyncronously from chrome. Trigger an update when we adjust the widget configurations. r=aklotz
2015-01-29 13:41:56 -06:00
Bas Schouten
57039f8c5a
Bug 1097699 - Part 3: Remove usage of LayerManagerD3D10. r=jrmuizel
2015-01-23 03:41:20 +00:00
Bas Schouten
95c30875ab
Bug 1097699 - Part 1: Remove usage of LayerManagerD3D9. r=jrmuizel
2015-01-23 03:41:20 +00:00
Bas Schouten
06cb403dec
Bug 1107718: Properly deal with a D3D11 device reset. r=nical
2015-01-08 00:10:49 +00:00
Jonathan Watt
822aebcae3
Bug 1103621 - Get rid of GraphicsOperator::OPERATOR_CLEAR. r=mattwoodrow
2014-11-20 10:40:04 +00:00
Jim Mathies
f65f2766d4
Bug 669200 - Follow up fix for busted non-unified builds, include nsIXULRuntime.h in nsWindowGfx.cpp. r=bustage
2014-11-12 17:23:35 -06:00
Jim Mathies
625acb64ee
Bug 669200 - Shunt access to PluginInstanceParent in widget/windows/nsWindowGfx, since it is no longer accessible in the chrome process. r=aklotz
2014-11-12 14:59:21 -06:00
Jim Mathies
2216111e8c
Bug 669200 - Various widget changes to support two new types of plugin widget. r=roc
2014-11-12 14:59:19 -06:00
Bas Schouten
626f78637b
Bug 1093696: Call UpdateRenderMode before drawing a frame with OMTC. r=jrmuizel
2014-11-04 22:00:09 +01:00
Jonathan Watt
c88b23e5e0
Bug 1082553 - Remove a few unnecessary nsRenderingContext includes and forward declarations. r=Bas
2014-10-16 10:51:13 +01:00
Jonathan Watt
e0cf315c57
Bug 1023522 - Get rid of the remaining Thebes backed gfxContexts in the Windows widget code. r=mattwoodrow
2014-06-11 10:38:44 +01:00
Jonathan Watt
0dcb1838b9
Bug 950372 - Convert imgIContainer::GetFrame to return a Moz2D SourceSurface instead of a Thebes gfxASurface. r=mattwoodrow
2014-04-15 19:02:23 +01:00
Matt Woodrow
0af6a62203
Bug 988862 - Treat DIRECT2D render mode as GDI when drawing directly to the window through BasicLayers. r=jrmuizel
2014-04-09 14:28:38 +12:00
Jonathan Watt
6facef9bfb
Bug 993323 - Make nsWindowGfx::CreateIcon() use the new gfxUtils helper for format conversion. r=Bas
2014-04-08 16:12:28 +01:00
Jonathan Watt
84478dd32c
Bug 990082 - Add missing null check to nsWindowGfx::CreateIcon. r=sparky
2014-04-06 15:41:45 +01:00
Jonathan Watt
32103f4888
Bug 981020 - Initialize the map before using it in nsWindowGfx::CreateIcon. r=mattwoodrow
2014-03-08 01:23:34 +00:00
Jonathan Watt
191e7fa1ff
Bug 979853 - Convert the Windows widget consumers of imgIContainer::GetFrame to act on a Moz2D SourceSurface instead of a Thebes gfxASurface. r=mattwoodrow
...
--HG--
extra : rebase_source : 12e05d7d6b80669e38b959d3fe9986a179f60cb6
2014-03-06 23:31:22 +00:00
Carsten "Tomcat" Book
da4b0d1ee4
Backed out changeset 22e34e33e9ee (bug 979853) for win7/win8 debug mochitest bustage on a CLOSED TREE
2014-03-06 13:27:04 +01:00
Jonathan Watt
5c63d6a55a
Bug 979853 - Convert the Windows widget consumers of imgIContainer::GetFrame to act on a Moz2D SourceSurface instead of a Thebes gfxASurface. r=mattwoodrow
2014-03-06 11:00:31 +00:00
Bas Schouten
22ff6636d9
Bug 806406: Remove some lingering references to gfxD2DSurface. r=jrmuizel
2014-02-13 02:59:12 +01:00
Benoit Jacob
15ef84b8b5
Bug 959448 - Convert most of LayersTypes.h to typed enums - r=nrc
...
find content/media dom/ipc widget/ gfx/tests gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)LAYERS_\(NONE\|BASIC\|OPENGL\|D3D9\|D3D10\|D3D11\|CLIENT\|LAST\)\($\|[^A-Za-z0-9_]\)/\1LayersBackend::LAYERS_\2\3/g'
find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::BUFFER_\2\3/g'
find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(BUFFERED\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::\2\3/g'
find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(DRAW\|DRAW_SNAPPED\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::\2\3/g'
find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::CLIP_\2\3/g'
find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SURFACE_\(NONE\|OPAQUE\|SINGLE_CHANNEL_ALPHA\|COMPONENT_ALPHA\)\($\|[^A-Za-z0-9_]\)/\1SurfaceMode::SURFACE_\2\3/g'
find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(STRETCH\|SENTINEL\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::\2\3/g'
find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::SCALE_\2\3/g'
2014-01-23 13:26:41 -05:00
Benoit Jacob
28ff3ad25f
Bug 959380 - 4/5 - Make gfxContentType a typed enum - r=jrmuizel
...
find . -type f | grep -v '\./obj' | grep -v '\.hg' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)GFX_CONTENT_\(COLOR\|ALPHA\|COLOR_ALPHA\|SENTINEL\)\($\|[^A-Za-z0-9_]\)/\1gfxContentType::\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
Benoit Jacob
300f4ba3a9
Bug 958375 - 6/9 - Make BackendType and NativeSurfaceType typed enums - 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
Jonathan Watt
a9c5083a32
Bug 944442 - DeCOMify imgIContainer::GetFrame. r=seth
...
--HG--
extra : rebase_source : 612c1923f3ed8a01fc30f2d306b4682e585e53fe
2013-12-13 08:34:24 +00:00
Nicholas Cameron
2ebff1a590
Bug 946532. Setup translucent window drawing properly with OMTC. r=dvander, mattwoodrow
2013-12-09 17:44:57 +13:00
Nicolas Silva
fd65e156ab
Bug 924403 - Send non-OMTC GL layers into oblivion. r=nrc
2013-11-27 11:15:17 +13:00
David Anderson
51ca221b03
Only composite changed areas in the software compositor (bug 882447, r=mattwoodrow,nrc).
2013-11-21 11:25:16 -08:00
Birunthan Mohanathas
1a50982f19
Bug 784739 - Switch from NULL to nullptr in widget/windows/ (2/3); r=ehsan
...
--HG--
extra : rebase_source : 5276b6474b9d6135ca2db408d17f0b5ed98b24a6
2013-10-08 14:48:20 -04:00
David Anderson
8cd94ee096
Combine AsyncChannel, SyncChannel, and RPCChannel into one class (bug 901789, r=cjones,bent).
...
--HG--
rename : ipc/glue/RPCChannel.cpp => ipc/glue/MessageChannel.cpp
rename : ipc/glue/RPCChannel.h => ipc/glue/MessageChannel.h
2013-09-27 18:42:08 -07: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
Matt Woodrow
0a4526133d
Bug 907926 - Use the ClientArea when initializing the draw target in nsWindowGfx. r=Bas
2013-09-11 17:08:53 +12:00
Vladan Djeric
50cce37a7b
Backed out changeset a8e569516f31 (bug 907926) for TART regressions
2013-09-11 13:30:53 -04:00
Matt Woodrow
d255f71414
Bug 907926 - Use the ClientArea when initializing the draw target in nsWindowGfx. r=Bas
2013-09-11 17:08:53 +12:00
Nicholas Cameron
b9da92cf71
Bug 912352. Do an async composite as soon as we get a WM_PAINT message. r=roc
2013-09-09 09:08:07 +12:00
Nicholas Cameron
a958a793b4
Bug 910158. Don't include BasicLayers.h unnecessarily. r=roc
2013-09-02 10:20:45 +12:00
Matt Woodrow
7c8c778197
Bug 907926 - Azure support for windows/nsWindow. r=Bas
2013-08-23 18:13:55 +12:00
Nicholas Cameron
d29ce699f6
Bug 874721. OMTC Windows window resizing. r=mattwoodrow
2013-07-23 11:02:22 +12:00
Markus Stange
07bad85738
Bug 676241 part 8: Remove alternate layer manager handling. r=mattwoodrow
2013-05-23 16:49:18 +02:00
Bas Schouten
e758a47254
Bug 830347 - Part 3: Integrate new D3D compositor into widget. r=jmathies
2013-05-03 19:34:33 +02:00
Kyle Huey
0adceb0fa5
Back out bug 830347.
2013-05-08 12:04:11 -07:00