Commit Graph

14521 Commits

Author SHA1 Message Date
Lee Salzman
8a2ef85f44 Bug 1188462 - Add SKIA_INCLUDES list for adding Skia to header search path. r=jrmuizel 2015-07-30 12:05:22 -04:00
Lee Salzman
b14ec2fed8 Bug 1188462 - Rename gfx/skia/trunk directory to gfx/skia/skia. r=jrmuizel 2015-07-30 11:51:29 -04:00
Mason Chang
db2c297a36 Bug 1155249 - Prescale image with an intermediate surface if repeated often on OS X. r=mstange 2015-07-30 08:14:00 -04:00
Milan Sreckovic
b58a5684e5 Bug 1178965 - Check if Factory::GetD2D1Device fails in SourceSurfaceD2D1. r=nical 2015-07-30 07:56:00 -04:00
Benoit Girard
de17df73ab Bug 1189473 - Don't paint the tiles in the APZ minimap. r=mstange 2015-07-30 15:26:39 -04:00
Andrew Comminos
23750ad765 Bug 1187440 - Fix curly brace bustage in TextureHostOGL. CLOSED TREE 2015-07-30 10:13:00 -04:00
Andrew Comminos
5d264f12d4 Bug 1187440 - Implement GLX shared surfaces on the OpenGL compositor. r=jgilbert,nical 2015-07-30 12:40:56 -04:00
Andrew Comminos
80080b0e89 Bug 1184534 - Fetch viewport size from context in CompositorOGL, discard if changed during composition. r=nical 2015-07-30 12:39:32 -04:00
Andrew Comminos
e27a48201a Bug 1184534 - Add support for target size retrieval to GLX backend. r=jgilbert 2015-07-30 12:39:26 -04:00
Matt Woodrow
170612bcd9 Bug 1188995 - Increase tile size to 512/1024 on OSX. r=jrmuizel,mstange 2015-07-29 18:21:26 -04:00
David Anderson
75ea3b4482 Don't upgrade gfx features after device resets. (bug 1183910 part 5, r=mattwoodrow) 2015-07-30 00:27:06 -07:00
David Anderson
ab5fc3dcd1 Factor out D2D initialization checks. (bug 1183910 part 4, r=mattwoodrow) 2015-07-30 00:25:56 -07:00
David Anderson
ade2871200 Remove D3D11Status flag in favor of FeatureStatus. (bug 1183910 part 3, r=mattwoodrow) 2015-07-30 00:24:56 -07:00
David Anderson
59ee26be39 Add a pref to force TDRs for graphics testing. (bug 1183910 part 2, r=mattwoodrow) 2015-07-30 00:23:53 -07:00
Nicholas Nethercote
b003fba482 Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.

And do likewise for nsTObserverArray.
2015-07-28 23:24:24 -07:00
Matt Woodrow
e1c0dc0a8a Bug 1150944 - Don't force the discrete GPU for skia gl. r=jrmuizel 2015-07-29 16:35:55 -04:00
Matt Woodrow
ff3e71c061 Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Matt Woodrow
dac19d3343 Bug 1150944 - Fix gfxPrefs unit test to not rely on skia-gl pref. r=mstange 2015-07-29 16:35:55 -04:00
Matt Woodrow
4bf5c8000a Bug 1034370 - Make sure we release the SkImageFilter in DrawTargetSkia::DrawSurfaceWithShadow. r=gw280 2015-07-29 16:35:55 -04:00
Wes Kocher
d73df9eb52 Backed out 6 changesets (bug 1150944, bug 1034370) for build failures in WebGLContext.cpp CLOSED TREE
Backed out changeset e2a6160242e5 (bug 1150944)
Backed out changeset 1c510537d20b (bug 1150944)
Backed out changeset 7ae813666ed5 (bug 1150944)
Backed out changeset 2f29ac2e31cd (bug 1150944)
Backed out changeset bf7681b1567e (bug 1150944)
Backed out changeset 79c6b8d014d2 (bug 1034370)
2015-07-29 14:16:17 -07:00
Matt Woodrow
cf1fb0f8fd Bug 1150944 - Don't force the discrete GPU for skia gl. r=jrmuizel 2015-07-29 16:35:55 -04:00
Matt Woodrow
a355c051e4 Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Matt Woodrow
8c5f0fa1e1 Bug 1150944 - Fix gfxPrefs unit test to not rely on skia-gl pref. r=mstange 2015-07-29 16:35:55 -04:00
Matt Woodrow
e70ae6405a Bug 1034370 - Make sure we release the SkImageFilter in DrawTargetSkia::DrawSurfaceWithShadow. r=gw280 2015-07-29 16:35:55 -04:00
Vladimir Vukicevic
8b7baa4bb2 Bug 1188700, [webvr] Fix VR distortion compositing in d3d11/gl to take into account rendertarget size and transform; r=kip 2015-07-29 14:39:47 -04:00
Vladimir Vukicevic
1d7b498b27 Bug 1186608, [webvr] Add individual prefs to disable backends, set sane defaults; r=mstange 2015-04-12 23:05:36 -04:00
Vladimir Vukicevic
f7cfb01bc7 Bug 1167326, fix up VR distortion constant buffer; r=bas 2015-07-29 14:39:47 -04:00
Vladimir Vukicevic
edc0cc2ab3 Bug 1179935, introduce complex viewport projections to Compositor, remove PrepareViewport; r=mstange
---
 gfx/layers/Compositor.h                          |  10 ---
 gfx/layers/basic/BasicCompositor.h               |   2 -
 gfx/layers/composite/TextureHost.h               |  34 +++++++-
 gfx/layers/d3d11/CompositorD3D11.cpp             |  47 +++++++---
 gfx/layers/d3d11/CompositorD3D11.h               |   4 +-
 gfx/layers/d3d9/CompositorD3D9.h                 |   2 +-
 gfx/layers/opengl/CompositingRenderTargetOGL.cpp |  23 +++--
 gfx/layers/opengl/CompositingRenderTargetOGL.h   |   2 +
 gfx/layers/opengl/CompositorOGL.cpp              | 104 +++++++++++++----------
 gfx/layers/opengl/CompositorOGL.h                |   6 +-
 10 files changed, 145 insertions(+), 89 deletions(-)
2015-05-19 13:51:26 -04:00
Vladimir Vukicevic
ea27f7ace1 Bug 1179944, [webvr] put back support for Oculus 0.5.0 runtime, for OSX and Linux; r=mstange 2015-06-05 13:14:10 -04:00
Vladimir Vukicevic
ff08123863 Bug 1179944, [webvr] support Oculus 0.6.0 runtime and rendering; r=mstange
---
 gfx/2d/Quaternion.h                              |  10 +
 gfx/layers/Layers.h                              |   6 +-
 gfx/layers/composite/ContainerLayerComposite.cpp | 161 +++++++---
 gfx/layers/composite/ContainerLayerComposite.h   |   3 +
 gfx/thebes/gfxPrefs.h                            |   2 +
 gfx/vr/gfxVR.cpp                                 |  56 ++++
 gfx/vr/gfxVR.h                                   |  37 +++
 gfx/vr/gfxVRCardboard.cpp                        |  54 +---
 gfx/vr/gfxVROculus.cpp                           | 367 +++++++++++++++--------
 gfx/vr/gfxVROculus.h                             |  14 +-
 gfx/vr/moz.build                                 |  10 +
 gfx/vr/ovr_capi_dynamic.h                        | 261 +++++++++++-----
 modules/libpref/init/all.js                      |   3 +
 13 files changed, 694 insertions(+), 290 deletions(-)
2015-07-02 11:58:24 -04:00
Vladimir Vukicevic
4661807fc2 Bug 1179933, add Layer::ReplaceEffectiveTransform for temporary transform changes; r=mstange
---
 gfx/layers/Layers.h | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
2015-05-19 13:56:31 -04:00
Botond Ballo
46912805fb Bug 1131359 - Fix an include-what-you-use error in AsyncCompositionManager.cpp. r=kats 2015-07-27 18:48:54 -04:00
Botond Ballo
b70da53918 Bug 1131359 - Port the double-tap-to-zoom functionality of BrowserElementPanning.js to C++. r=kats 2015-07-27 14:07:58 -04:00
Botond Ballo
cdd1ddf2d4 Bug 1186164 - When clearing the overscroll animation state, make sure GetOverscroll() continues to reflect the correct direction of overscroll. r=Cwiiis 2015-07-22 18:55:55 -04:00
Bobby Holley
106e778c81 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Matt Woodrow
d1919e5cd5 Bug 1180326 - Part 6: Use SingleTiledContentClient for non-scrollable layers on b2g and OSX. r=jrmuizel 2015-07-29 12:03:01 -04:00
Matt Woodrow
400115e8ec Bug 1180326 - Part 5: Support HWC with tiling when we only have 1 tile. r=jrmuizel 2015-07-29 12:02:50 -04:00
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