Commit Graph

387 Commits

Author SHA1 Message Date
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
David Anderson
c70534a3cb 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 00:29:08 -07:00
David Anderson
5953408ea9 Don't mix GPU adapters across processes. (bug 1183910 part 10, r=jmuizelaar) 2015-08-10 20:27:06 -07:00
Carsten "Tomcat" Book
26f2018b57 Backed out 2 changesets (bug 1183910) for bustage on a CLOSED TREE
Backed out changeset 9617a34de78f (bug 1183910)
Backed out changeset d8f79432c768 (bug 1183910)
2015-08-06 12:09:52 +02:00
David Anderson
4e15c1f1eb Don't mix GPU adapters across processes. (bug 1183910 part 10, r=jmuizelaar) 2015-08-06 02:42:04 -07:00
David Anderson
a976b3be5c Don't create a D3D11 compositor device on content processes. (bug 1183910 part 8, r=bas,mattwoodrow) 2015-08-05 02:45:06 -07:00
David Anderson
ac8c6304a9 Use the same graphics device parameters across processes. (bug 1183910 part 7, r=mattwoodrow) 2015-08-02 13:59:33 -07:00
David Anderson
553469ede1 Don't upgrade gfx features after device resets. (bug 1183910 part 5, r=mattwoodrow) 2015-07-30 00:27:06 -07:00
David Anderson
9d8c16c3d7 Factor out D2D initialization checks. (bug 1183910 part 4, r=mattwoodrow) 2015-07-30 00:25:56 -07:00
David Anderson
1155aac2de Remove D3D11Status flag in favor of FeatureStatus. (bug 1183910 part 3, r=mattwoodrow) 2015-07-30 00:24:56 -07:00
David Anderson
4be0f86cb1 Add a pref to force TDRs for graphics testing. (bug 1183910 part 2, r=mattwoodrow) 2015-07-30 00:23:53 -07:00
David Anderson
b18f329c76 Refactor graphics device initialization on Windows. (bug 1183910 part 1, r=mattwoodrow,bas)
This patch addresses a number of inconsistencies in the device initialization process, as well as simplifying it for future use. All device decisions are now explicitly made up-front during startup, rather than implicitly or on-demand. In addition a number of restrictions have been placed on when we can construct devices.

Full change list:
 (1) We no longer attempt to use D3D11 if acceleration is disabled or D3D9 is preferred. This is a departure from our previous behavior, where we would construct these devices but then not use them as a compositor backend.
 (2) D3D11 startup no longer creates a content device (this is reserved for D2D initialization).
 (3) D2D is only attempted if we managed to create a D3D11 compositor device. This is a departure from previous behavior where if D3D11 was not used for compositing, we could still create its machinery to use D2D as a content backend.
 (4) D2D 1.1 initialization is now directly responsible for creating a D3D11 content device.
 (5) D2D 1.0 and 1.1 logic have been disentangled for clarity.
 (6) UpdateRenderMode() has been split up, so we can update backend prefs out of band with device resets.
 (7) mUseGDIFonts and mUseDirectWrite have been removed as their state was confusing. Instead, D2D now depends on DWrite initialization succeeding. If later we fail to get a DWrite font list, we revert our decision to use Direct2D.
 (8) Device resets now clear a little more state, including the devices set in Moz2D Factory.
 (9) We no longer create a DWrite text analyzer as it was unused.
2015-07-28 16:52:54 -07:00
David Anderson
6203e0e25b Clear the blur cache after device resets. (bug 1188032, r=bas) 2015-07-28 00:38:41 -07:00
David Anderson
6e4ce18585 Fix d3d11 texture sharing checks being preserved across device resets. (bug 1183910 part 6, r=mattwoodrow)
--HG--
extra : rebase_source : a0b7b5a5a0d517e269d7c1d4eb7b58b3d862f230
2015-07-28 00:06:13 -07:00
Bas Schouten
1a51d15b0f Bug 1176363 - Part 1: Stop using DrawTargets off the main thread. r=mattwoodrow 2015-07-27 15:47:29 +00:00
Ryan VanderMeulen
e107ea6a37 Backed out changeset adbd8a7608e4 (bug 1176363) for mochitest-gl permacrashes. 2015-07-27 13:54:56 -04:00
Bas Schouten
0bdd67bdd0 Bug 1176363 - Part 1: Stop using DrawTargets off the main thread. r=mattwoodrow 2015-07-27 15:47:29 +00:00
Kyle
5c7d22e2ef Bug 1167651 - Added an initialization to mDoesD3D11TextureSharingWork for Windows 8 and later. r=bas 2015-07-13 15:23:26 -04:00
Jeff Muizelaar
fe212d32d1 Bug 1186002. Avoid testing for recreate on broken drivers. r=dvander
--HG--
extra : rebase_source : 1edc58165abf2e604e539b3a4574bfc1ad2512db
2015-07-22 10:32:31 -04:00
David Anderson
ddaede9c8e Add compositor, layers, and rendering info to nsIGfxInfo. (bug 1179051 part 5, r=mattwoodrow) 2015-07-19 14:50:35 -07:00
Ryan VanderMeulen
734c9eb563 Backed out changesets 90446493d402 and c4f4027f9f3a (bug 1179051) for crashes. 2015-07-19 22:39:20 -04:00
David Anderson
28d2dc3e58 Add compositor, layers, and rendering info to nsIGfxInfo. (bug 1179051 part 5, r=mattwoodrow) 2015-07-19 14:50:35 -07:00
David Anderson
ba1e3c52d9 Move more compositor backend checks into gfxPlatform. (bug 1179051 part 4, r=mattwoodrow)
--HG--
extra : rebase_source : 887ed513fc50f2c1ee560ffa4a795b5c847154fe
2015-07-16 15:18:38 -07:00
David Anderson
65475c97d0 Move compositor backend decisions into gfxPlatform. (bug 1179051 part 3, r=mattwoodrow)
--HG--
extra : rebase_source : 43cdb0e1b5d464f8d6a0cc7a0b2e36d1b34e8595
2015-07-16 15:18:05 -07:00
David Anderson
4f74031f0f Fix regression where WARP could be used as a fallback on Windows 7. (bug 1179051 part 2.1, r=jrmuizel)
--HG--
extra : rebase_source : 0e7932489d2a91d4535047f5d9c59cee323a52cf
2015-07-16 14:45:06 -07:00
Ryan VanderMeulen
c5f205c7ca Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-16 12:45:32 -04:00
Ryan VanderMeulen
9466d7029c Backed out changeset 01478a143658 (bug 1159751) for causing bug 1184539.
CLOSED TREE

--HG--
extra : amend_source : 4ec25bfff3e810c29b68978142005b78fa8fb867
2015-07-16 11:11:39 -04:00
David Anderson
7885e309cd Break InitD3D11Devices up into smaller functions. (bug 1179051 part 2, r=bas) 2015-07-15 23:59:39 -07:00
David Anderson
cc8850cffc Split gfxWindowsPlatform::UpdateRenderMode() into multiple functions. (bug 1179051 part 1, r=bas) 2015-07-15 23:59:04 -07:00
Jeff Muizelaar
65c6ab8e0c Bug 1184130. Report mismatches of adapter description and vendor id that we get from the registry. r=bas
This should help us detect optimus configurations better.

--HG--
extra : rebase_source : d01289129b0ba4ad26b28275f70f85d62991c08e
2015-07-14 15:00:24 -04:00
Jeff Muizelaar
7bc6837af6 Bug 1178426. Add GfxInfo to ServicesList.h. r=nfroyd
--HG--
extra : rebase_source : b18fb78fa6b7d86fbb9496861938bfde21b3c6e6
2015-07-08 16:51:09 -04:00
Bas Schouten
25767b735d Bug 1159751: Ensure WARP can never be used for Windows 7. r=milan 2015-07-14 17:02:21 +00:00
Lee Salzman
dfce3fe4ef Bug 1170390 - Make gfxPlatform::CreateOffscreenSurface use explicit format rather than guess. r=jrmuizel 2015-07-06 21:21:47 -04:00
Jeff Muizelaar
f3a26c774c Bug 1109718. Log when RenderTargetView's need to be recreated. r=mwoodrow
This should help us figure out how wide spread this problem is.

--HG--
extra : rebase_source : 635837b6ce2f3e35722c607506a039b49abb7a25
2015-07-10 16:56:09 -04:00
Lee Salzman
5291e3cfc7 Bug 1180246 - Part 3 - remove usage of cairo_d2d_device. r=bas
--HG--
extra : rebase_source : a9521859e5815a4c3ff200639a1c01fe20dbd0d3
2015-07-02 17:44:53 -04:00
Lee Salzman
97d3a0fc71 Bug 1180246 - Part 1 - remove dependencies on gfxD2DSurface. r=bas
--HG--
extra : rebase_source : 199520a80f8d904f2034fa39d9640d271078a6ac
2015-07-02 08:02:51 -04:00