Commit Graph

14484 Commits

Author SHA1 Message Date
Matt Woodrow
23abbf04c3 Bug 1180326 - Part 4: Add new content client. r=jrmuizel 2015-07-29 12:02:40 -04:00
Matt Woodrow
3ae3aaf84c Bug 1180326 - Part 3: Move repeated code into GetBackBuffer. r=jrmuizel 2015-07-29 12:02:27 -04:00
Matt Woodrow
b3a0c4fc49 Bug 1180326 - Part 2: Add support for variable tile sizes. r=jrmuizel 2015-07-29 12:01:21 -04:00
Matt Woodrow
7fcdfa5daa Bug 1180326 - Part 1: Abstract parts of the client side tiling that we need. r=jrmuizel 2015-07-29 12:01:11 -04:00
Nicholas Nethercote
53dc8b3e1b Bug 1188705 (part 3) - Simplify imgFrame::SizeOfExcludingThis(). r=seth.
imgFrame::SizeOfExcludingThis() measures heap and non-heap memory in a very
complex way. This patch simplifies it and removes gfxMemoryLocation in the
process. (gfxMemoryLocation::OUT_OF_PROCESS was unused.)
2015-07-28 21:02:45 -07:00
Nicholas Nethercote
e57cd91501 Bug 1188705 (part 1) - Remove gfxASurface::GetMemoryLocation(). r=seth.
It's unused.
2015-07-28 18:33:41 -07:00
Lee Salzman
8f1d3691ab Bug 1185636 - Remove hard stop workaround for Cairo due to regressions. r=jrmuizel 2015-07-20 14:51:50 -04:00
David Anderson
a10ad42d90 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
Lee Salzman
79ef3ad1e1 Bug 1179859 - Fix _cairo_box_intersects_line_segment early rejection tests. r=jrmuizel 2015-07-21 23:38:44 -04:00
Vladimir Vukicevic
98c6242570 Bug 1161670, cache D3D11 ShaderResourceView on TextureSourceD3D11; r=bas,jrmuizel 2015-05-05 14:35:29 -04:00
Nicolas Silva
3ab4db55de Bug 1118876 - Add edge padding with DrawTargetTiled. r=jrmuizel 2015-07-12 11:11:30 +02:00
Ehsan Akhgari
6475fc4b90 Bug 1188206 - Fix more constructors in gfx; r=jrmuizel 2015-07-28 08:53:26 -04:00
David Anderson
4684b384c0 Clear the blur cache after device resets. (bug 1188032, r=bas) 2015-07-28 00:38:41 -07:00
David Anderson
9a684f550c Fix d3d11 texture sharing checks being preserved across device resets. (bug 1183910 part 6, r=mattwoodrow) 2015-07-28 00:06:13 -07:00
Bas Schouten
74475c3e10 Bug 1176363 - Part 1: Stop using DrawTargets off the main thread. r=mattwoodrow 2015-07-27 15:47:29 +00:00
Kartikaya Gupta
704e816a33 Bug 1187792 - Don't set the SPCSPS unless meta-viewport or zooming is enabled. r=botond 2015-07-27 22:09:37 -04:00
Ryan VanderMeulen
3a870937bc Backed out changeset adbd8a7608e4 (bug 1176363) for mochitest-gl permacrashes. 2015-07-27 13:54:56 -04:00
Bas Schouten
90b79e0e3c Bug 1176363 - Part 1: Stop using DrawTargets off the main thread. r=mattwoodrow 2015-07-27 15:47:29 +00:00
Lee Salzman
cc40b36469 Bug 1187210 - limit ArcToBezier sweeps while taking care of floating-point inaccuracy. r=eihrul 2015-07-25 02:45:02 -04:00
Kartikaya Gupta
e4d72b429c Bug 1134917 - Hoist assertion into the one callsite where it is actually valid. r=botond 2015-07-24 14:33:47 -04:00
Sotaro Ikeda
a024b5aa03 Bug 1187048 - Code clean up around nsScreenGonk's EGLSurface handling r=mwu 2015-07-24 10:56:05 -07:00
Bas Schouten
066a7c1c18 Bug 1187075: Implement cairo atomics for Win32. r=jrmuizel 2015-07-24 16:41:02 +00:00
Sotaro Ikeda
4e0baa6c64 Bug 1186968 - Fix Compositor::SetScreenRotation() call r=nical 2015-07-24 07:13:59 -07:00
Jamie Nicol
aadf5f2161 Bug 1186911 - Fix progressive paint when using tiled-drawtarget. r=nical
The commit for bug 1176077 did not correctly handle the code path for
when both progressive paint and tiled-drawtarget are enabled. This
fixes it.
2015-07-24 10:42:12 +01:00
Kyle
2334850aea Bug 1167651 - Passed the forceEnabled pref from function to function down to GLLibraryEGL::EnsureInitialized. r=jgilbert 2015-07-23 13:12:59 -04:00
Kyle
e49a0c330b Bug 1167651 - Added an initialization to mDoesD3D11TextureSharingWork for Windows 8 and later. r=bas 2015-07-13 15:23:26 -04:00
Kyle
5d92101222 Bug 1167651 - Made EGL initialize its ANGLE display using WARP if the system is blacklisted from using HW acceleration for WebGL ANGLE or if WebGL WARP is forced through a pref. ClientCanvasLayer is changed so that it will use shared surfaces only if the compositing device and the WebGL device are both WARP or both not WARP. Added a mIsWARP field to GLLibraryEGL so that this condition can be checked. r=jgilbert 2015-07-23 13:11:04 -04:00
Benoit Girard
57030ee10d Bug 1186159 - Add an APZ minimap. r=kats 2015-07-23 11:29:22 -04:00
Kearwood (Kip) Gilbert
4532f4438d Bug 1181240 - Part 4: Remove gfx3DMatrix,r=vlad
- Removed the gfx3DMatrix class, which has been replaced with Matrix4x4
2015-07-10 17:12:29 -07:00
Kearwood (Kip) Gilbert
f0bef5f2b3 Bug 1181240 - Part 3: Replace gfx3DMatrix with Matrix4x4 in gfx,r=vlad
- Refactored code to use Matrix4x4 instead of gfx3DMatrix.
- There is not expected to be any functional effect.
2015-07-10 17:06:35 -07:00
Kearwood (Kip) Gilbert
3f9b5c0c0f Bug 1181240 - Part 2: Replace gfx3DMatrix with Matrix4x4 in layout,r=vlad
- Refactored code to use Matrix4x4 instead of gfx3DMatrix.
- There is not expected to be any functional effect.
2015-07-10 17:05:47 -07:00
Kearwood (Kip) Gilbert
4a051e26c3 Bug 1181240 - Part 1: Copy methods from gfx3DMatrix,r=vlad
- Copied methods from gfx3DMatrix to Matrix4x4, gfxPoint, and gfxRect that
  with at double-precision floating point.
2015-07-09 16:27:38 -07:00
Milan Sreckovic
4ad66be42e Bug 1173579 - Take the first valid default font. r=jdagget 2015-07-21 14:22:25 -04:00
Kartikaya Gupta
c4a7ab6183 Bug 1186004 - Split the asyncPanZoom reftest sandbox condition into asyncPan and asyncZoom. r=mstange 2015-07-22 23:42:08 -04:00
Kartikaya Gupta
6b2369f993 Bug 1186004 - Add a pref to enable/disable APZ zooming behaviour. r=botond 2015-07-22 23:42:08 -04:00
Tim Stullich
f32e7dfd7d Bug 1171312 - Add generic tree search algorithms for layers-related data structures. r=botond 2015-07-21 16:36:08 -07:00
Jamie Nicol
7f8f9c94b5 Bug 1176077 - Only recompute PaintedLayer item visibility when display list has changed. r=mattwoodrow
FrameLayerManager::RecomputeItemsVisibility() was being called on every
call to FrameLayerBuilder::DrawPaintedLayer(), each time for the region
to be painted by that paint call. This is inefficient when progressive
paint is enabled. Change it so that we compute the visibility of all the
layer's items within the total region to be painted, but only on the
first paint after the display list has been modified.
2015-07-21 09:19:25 +01:00
Jeff Muizelaar
2187a30f1d Bug 1186002. Avoid testing for recreate on broken drivers. r=dvander 2015-07-22 10:32:31 -04:00
Nicolas Silva
f241518189 Bug 1186208 - Fix crash when tiling is enabled on linux. r=mattwoodrow 2015-07-22 16:06:02 +02:00
Dan Glastonbury
32e627aa24 Bug 1170455 - Part 3: Wrangle GetVertexAttribI symbols. r=jgilbert 2015-07-22 11:59:17 +10:00
Jeff Muizelaar
d93fe7cfe4 Bug 1186025. Optimize the usage of regions. r=mstange
This eliminates a bad idiom in some places.
2015-07-21 10:54:44 -04:00
Sotaro Ikeda
2d816fdbbe Bug 1186031 - Fix SetDispAcquireFence() calling r=nical 2015-07-21 09:56:17 -07:00
Ting-Yu Lin
5373b86d2f Bug 1185840 - Make nsRegion::ToString() print string literal. r=roc
The function prints a region like [14,118,87,153; 14,218,87,253].
2015-07-21 00:23:00 +08:00
Kartikaya Gupta
03f659c8d0 Bug 1178847 - Move the code from ChromeProcessController::InitializeRoot to APZCCallbackHelper so it can be reused in the child process. r=botond 2015-07-21 10:51:22 -04:00
Carsten "Tomcat" Book
beb5e58493 Backed out changeset 2b2d3c44819e (bug 1178847) for windows reftest failures/assertions 2015-07-21 08:35:29 +02:00
Kartikaya Gupta
0483dea2be Bug 1178847 - Move the code from ChromeProcessController::InitializeRoot to APZCCallbackHelper so it can be reused in the child process. r=botond 2015-07-20 18:19:40 -04:00
Seth Fowler
2100dfa4a6 Bug 1185582 - Back out bug 1171356, a hack to retry image decoding which is now useless. r=tn 2015-07-20 11:24:59 -07:00
David Anderson
dc0138c34a Add compositor, layers, and rendering info to nsIGfxInfo. (bug 1179051 part 5, r=mattwoodrow) 2015-07-19 14:50:35 -07:00
Ryan VanderMeulen
7a0228a1fa Backed out changesets 90446493d402 and c4f4027f9f3a (bug 1179051) for crashes. 2015-07-19 22:39:20 -04:00
Sotaro Ikeda
ce669f1dab Bug 1167799 part 2 - Add EGL_ANDROID_image_crop support r=nical,jgilbert 2015-07-19 16:03:10 -07:00