Commit Graph

422 Commits

Author SHA1 Message Date
Nathan Froyd
20624ec388 Bug 1222569 - fix -Wformat warning in gfxWindowsPlatform.cpp; r=Bas 2015-11-06 14:42:09 -05:00
Nathan Froyd
2b88ed7158 Bug 1222569 - fix initialization order in gfxWindowsPlatform.cpp; r=Bas 2015-11-06 14:40:48 -05:00
Benoit Girard
f592f0fa5b Bug 1221348 - Part 2: Fix texture sharing detection code on Intel. r=jrmuizel
--HG--
extra : commitid : 7OxVAv5q4NJ
2015-11-06 14:48:44 -08:00
Benoit Girard
ca56eb47b0 Bug 1221348 - Part 1: Unify crash signatures. r=jrmuizel
--HG--
extra : commitid : JmqLdOjZe0m
2015-11-06 11:54:32 -05:00
Mason Chang
8aa60c20d6 Bug 1221674 - Add telemetry probe in the content process to measure the time between refresh driver ticks. r=kats 2015-11-06 08:20:58 -08:00
Mason Chang
9e9747858c Backout bug 842894 for lack of skia documentation. r=me 2015-10-28 15:17:04 -07:00
Mason Chang
f9083bce99 Bug 842894 - Support DirectWrite using the Skia backend. r=bas 2015-10-28 14:54:54 -07:00
Benoit Girard
5b68a8adf7 Bug 1097321 - Add layers.amd-switchable-gfx.enabled pref. r=jrmuizel
--HG--
extra : commitid : 4X1a35Dm5sB
extra : rebase_source : 9d5a51da0f7f4697edb164a23a24698285c9b704
2015-10-20 12:58:11 -07:00
Benoit Girard
683a6134f1 Bug 1097321 - Fix DoesD3D11TextureSharingWorkInternal to handle Intel/AMD configurations. r=Bas
--HG--
extra : commitid : KG1A26LEJqD
extra : rebase_source : 982cc4c8ad3ca75c36d068a33faabe25afb50a3e
2015-10-08 14:20:22 -07:00
Milan Sreckovic
dd6aa8383f Bug 1217192 - Use gfxCriticalNote where we're already using the non-default construction parameter. r=mchang 2015-10-21 14:34:00 +02:00
John Daggett
f4458274bd Bug 543715 p1 - distinguish between italic and oblique. r=jfkthame 2015-10-19 11:16:43 +09:00
Phil Ringnalda
adfbc1f710 Back out 2 changesets (bug 543715) because Mulet is why we can't have nice things
Backed out changeset 2d1d8e9b095c (bug 543715)
Backed out changeset bc90276ec090 (bug 543715)
2015-10-18 11:22:22 -07:00
John Daggett
72b6bcd6d6 Bug 543715 p1 - distinguish between italic and oblique. r=jfkthame 2015-10-18 22:17:46 +09:00
Nathan Froyd
01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd
583afa0965 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
Mason Chang
ced85cbc4f Bug 1210250. Fallback to GDI fonts with a skia backend. r=jwatt 2015-10-12 09:54:15 -07:00
Wes Kocher
0191dbf4b6 Backed out changeset aced11aac8b8 (bug 1210250) for Windows build bustage 2015-10-12 09:23:24 -07:00
Mason Chang
897d53deb1 Bug 1210250. Fallback to GDI fonts with a skia backend. r=jwatt 2015-10-12 08:21:55 -07:00
David Anderson
b2ef93be8f Fix layers.acceleration.force-enabled not working. (bug 1212659, r=jrmuizel) 2015-10-08 12:21:59 -07:00
Milan Sreckovic
471eeeeab2 Bug 1207258 - Give back the ability to run direct write without D2D, but only with a *force* preference. r=dvander 2015-10-05 11:40:00 +02:00
David Anderson
1befc42825 Don't use Direct2D if CompositorD3D11::Initialize fails. (bug 1208638, r=jrmuizel) 2015-10-01 23:06:43 -07:00
Bas Schouten
55fc81be8b Bug 1208465 - Part 2: Disable using Direct2D when 1.1 is unavailable. r=jrmuizel 2015-09-25 13:30:57 +00:00
Wes Kocher
eff494e681 Backed out changeset 919a831786f1 (bug 1208638) for windows build failures 2015-09-30 16:43:26 -07:00
David Anderson
b0e2473678 Don't use Direct2D if CompositorD3D11::Initialize fails. (bug 1208638, r=jrmuizel)
--HG--
extra : rebase_source : 2c0b1febd9bcc3a52f48a98243ab853f5b58848d
2015-09-30 16:16:16 -07:00
Ehsan Akhgari
6157d50ebb Bug 1208927 - Initialize queryD3DKMTStatistics so that it can't be accessed uninitialized; r=jrmuizel 2015-09-30 11:55:49 -04:00
Bas Schouten
dd395e3023 Bug 1208833: Disable DWrite when D2D device creation fails. r=dvander 2015-09-29 16:39:14 +02:00
David Anderson
a2ff08cf74 Don't use Direct 2D 1.0 if Direct3D11 is using WARP. (bug 1207665 part 2, r=jmuizelaar) 2015-09-28 12:45:43 -07:00
James Willcox
9932c21923 Bug 1182665 - Add gfxPlatform::GetScreenSize() and use nsIScreen for gfxPlatform::GetScreenDepth() r=nical 2015-09-28 09:36:54 -05:00
Nicholas Nethercote
db4bf9b138 Bug 1207437 (part 3) - Fix and disallow warnings in gfx/thebes/. r=dvander.
This requires putting the structured exception blocks in their own functions,
away from local variables with types that have destructors.

--HG--
extra : rebase_source : 66a374e598ca43e2c404a1832636535ee13425fd
2015-09-24 15:52:05 -07:00
Nicholas Nethercote
26c3ba3de8 Bug 1207437 (part 2) - Don't re-get D3D11CreateDevice. r=dvander.
It's always obtained during gfxWindowPlatform initialization and put into
sD3D11CreateDeviceFn.

--HG--
extra : rebase_source : a27abb673cfd250e1b26289295c8585b1541a29f
2015-09-24 15:52:04 -07:00
Nicholas Nethercote
631a28f191 Bug 1207437 (part 1) - Don't recompute Windows feature levels. r=dvander.
This is valid because mFeatureLevels is set when gfxWindowsPlatform is
initialized.

--HG--
extra : rebase_source : 60aea87f0b261f6410b311408c63728d6e1bb1cc
2015-09-24 15:52:02 -07:00
David Anderson
84df7133f4 Don't attempt to use WARP after D3D11CreateDevice crashes. (bug 1201202, r=bas) 2015-09-13 23:52:29 -07:00
Wes Kocher
ca0fa7c1cb Backed out 4 changesets (bug 1182665) for android reftest orange CLOSED TREE
Backed out changeset 719a4fbded10 (bug 1182665)
Backed out changeset 9559cead8d08 (bug 1182665)
Backed out changeset 4080fb4b9a7f (bug 1182665)
Backed out changeset c8549221c366 (bug 1182665)
2015-09-11 11:21:56 -07:00
Jeff Muizelaar
0abf6a52fb Bug 1197296. Check the error code of Map. r=bas
--HG--
extra : rebase_source : 093468b6ce7df1bafcd3e73288e93555228dc919
2015-09-10 11:04:01 -04:00
James Willcox
6d957289cf Bug 1182665 - Add gfxPlatform::GetScreenSize() and use nsIScreen for gfxPlatform::GetScreenDepth() r=nical 2015-09-11 09:09:17 -05:00
John Daggett
06366cd453 Bug 1203809 - pass textperf obj into gfxFontGroup constructor. r=m_kato
--HG--
extra : rebase_source : c9e9f4765b710937b046941a15e82eaf83c86b03
2015-09-11 13:24:33 +09:00
Milan Sreckovic
85a127ddb0 Bug 1160295 - Part 2. Make sure the DLLs are loaded before checking the version. r=bas 2015-09-04 08:52:00 +02:00
Jeff Muizelaar
97894bf634 Bug 1197296. Check for errors more during bug testing. r=Bas
--HG--
extra : rebase_source : 592b3656728170ac2409c26b267704bd942baac8
2015-08-27 22:38:39 -04:00
Milan Sreckovic
a8e2c1042a Bug 1196335 - Disambiguate the strings for scoped gfx reporter and D2D1.1. r=dvander 2015-08-19 10:08:00 -04:00
Milan Sreckovic
885f065a23 Bug 1195844: When checking for old DisplayLink versions, look for a few other DLLs. r=jrmuizel 2015-08-20 14:34:11 -07:00
Jeff Muizelaar
8da94c8800 Bug 1186426. Avoid using D3D11 ANGLE on systems that require recreating the rendertargetview. r=jgilbert
It turns out I accidentally landed
https://bug1109718.bmoattachments.org/attachment.cgi?id=8630177 as part of
another change. This should avoid the brokeness that was caused by that and
allow us to simplify our changes to ANGLE.

--HG--
extra : rebase_source : 9cb479c92c196b58398e187891d998b56e5b8e1f
2015-08-19 12:01:20 -04:00
Mason Chang
bb25bd45bf Bug 1190257. Use the previous vsync timestamp on windows 10. r=jrmuizel 2015-08-18 09:11:12 -07:00
Matt Woodrow
b6b2040427 Bug 1135935 - Part 4: Move IDirect3DTexture9 allocations and ownership into the TextureClient. r=jrmuizel
--HG--
extra : rebase_source : 3ef1a94532980c91b850d65047493b208b1b09ce
2015-08-11 10:15:34 -04:00
Milan Sreckovic
0f7c78e833 Bug 1160295: Bad DisplayLink drivers -> no acceleration. r=jrmuizel 2015-08-12 15:57:43 -07:00
David Anderson
be8aa250bf Pull D3D11 logic out of DriverCrashGuard. (bug 1190281 part 4, r=mattwoodrow) 2015-08-11 20:22:19 -07:00
David Anderson
129b167e20 Make DriverCrashGuard initialization lazy. (bug 1190281 part 3, r=mattwoodrow) 2015-08-11 20:22:18 -07:00
David Anderson
e6a325e77b Rename DriverInitCrashDetection to DriverCrashGuard. (bug 1190281 part 2, r=mattwoodrow)
--HG--
rename : gfx/src/DriverInitCrashDetection.cpp => gfx/src/DriverCrashGuard.cpp
rename : gfx/src/DriverInitCrashDetection.h => gfx/src/DriverCrashGuard.h
2015-08-11 20:22:18 -07:00
Sebastian Hengst
c2581fad83 Backed out 8 changesets (bug 1183910, bug 1190281)
Backed out changeset 6ddbdbd66174 (bug 1190281)
Backed out changeset c85c1d11bd72 (bug 1190281)
Backed out changeset 7f904a453bdb (bug 1190281)
Backed out changeset e17123b5bafd (bug 1190281)
Backed out changeset 50edbeb8912e (bug 1190281)
Backed out changeset cf98685302b6 (bug 1190281)
Backed out changeset e98a176b4e0b (bug 1190281)
Backed out changeset e7b3b23bcc82 (bug 1183910)

--HG--
rename : gfx/src/DriverCrashGuard.cpp => gfx/src/DriverInitCrashDetection.cpp
rename : gfx/src/DriverCrashGuard.h => gfx/src/DriverInitCrashDetection.h
2015-08-11 10:13:43 +02:00
David Anderson
f01a0269f5 Pull D3D11 logic out of DriverCrashGuard. (bug 1190281 part 4, r=mattwoodrow) 2015-08-11 00:29:08 -07:00
David Anderson
6e5a461ad7 Make DriverCrashGuard initialization lazy. (bug 1190281 part 3, r=mattwoodrow) 2015-08-11 00:29:08 -07:00