Commit Graph

436 Commits

Author SHA1 Message Date
Bas Schouten
273c601802 Bug 1247775 - Part 1: Remove D3D10/D2D 1.0 texture integration from layers. r=dvander
MozReview-Commit-ID: CPBTl0cEG3p
2016-02-13 14:33:27 +01:00
Milan Sreckovic
e5d1fffa48 Bug 1187464 - Part 2. RTTI for TextureSource debug purposes. Carry r=botond 2016-02-08 11:57:00 +01:00
Carsten "Tomcat" Book
01b9f62513 Backed out changeset 9320c843aa7e (bug 1247775) for breaking win 8 reftests 2016-02-12 08:49:50 +01:00
Bas Schouten
86009f3faf Bug 1247775 - Part 1: Remove D3D10/D2D 1.0 texture integration from layers. r=dvander
MozReview-Commit-ID: CPBTl0cEG3p

--HG--
extra : rebase_source : 88e86efda5e943ffe8d374ab6462b4b0fed20487
2016-02-12 00:52:59 +01:00
Bas Schouten
fe90bf3a21 Bug 1232042: Workaround Windows presentation bug by executing a present call on the main thread during a WM_PAINT event. r=jrmuizel
MozReview-Commit-ID: JbPdhIi9zCd
2016-02-06 03:14:44 +00:00
Phil Ringnalda
ac03b87535 Back out aeceae3e0e96 (bug 1232042) for Win8 crashes @nvwgf2umx.dll + 0x2d416a in addon manager tests 2016-02-06 09:52:35 -08:00
Bas Schouten
06a81d915b Bug 1232042: Workaround Windows presentation bug by executing a present call on the main thread during a WM_PAINT event. r=jrmuizel
--HG--
extra : commitid : K5S8gKJzzhj
2016-02-06 03:14:44 +00:00
Mason Chang
0e244c6f7b Bug 1239861. Part 2 Properly resize DXGI swap chain buffer size. r=bas 2016-02-05 10:11:46 -08:00
Carsten "Tomcat" Book
2d8c4c26f5 Backed out changeset 0cee3cdcce99 (bug 1187464)
--HG--
extra : rebase_source : 977a8167488bc1dbf71c6205a2eb4b77c1c3a0ca
2016-02-03 15:04:21 +01:00
Milan Sreckovic
91bbfbdf90 Bug 1187464 - Part 2. RTTI for TextureSource debug purposes. r=botond 2016-02-02 11:06:00 +01:00
David Anderson
3af026a7f5 Add full mix-blend mode support to the D3D11 compositor. (bug 1238496, r=bas) 2016-02-02 16:33:13 -08:00
Milan Sreckovic
f20acb8ca1 Bug 1244735 - Preference to override the default behaviour for partial present. r=jrmuizel 2016-02-01 13:34:00 +01:00
Nicholas Nethercote
ab52b9a0ea Bug 1239864 (part 7) - Use the new rect iterators in gfx/. r=nical.
--HG--
extra : rebase_source : 27d77656d578deefff0860184346ff962e32762f
2016-01-18 17:20:58 -08:00
Nicholas Nethercote
186d3e93ab Bug 1239537 - Remove Compositor::GetWidgetSize(), which is unused. r=mattwoodrow.
Also remove BasicCompositor::mWidgetSize because its only use can be replaced
by a temporary variable.

--HG--
extra : rebase_source : 03b5992445687cd1ec24307da2d42f87d8cc1041
2016-01-13 15:27:34 -08:00
Nicholas Nethercote
7892cfcede Bug 1239530 (part 2) - Use LayoutDevice coordinates in {Start,End}RemoteDrawingInRegion() and related functions. r=kats.
--HG--
extra : rebase_source : b5bd2d6822904a188242efa6e46aaed9f96a15b9
2015-12-02 22:29:54 -08:00
Bas Schouten
3edd8eed24 Bug 1237375: Add some more extensive debugging information. r=milan
--HG--
extra : rebase_source : 8e1bfbc2f58e053e143fcad258974c0c92adb73c
2016-01-08 00:59:06 +01:00
kearwood
5053ceed98 Bug 1230352 - Update to Oculus SDK 0.8.0,r=vlad 2015-09-22 09:38:28 -04:00
Milan Sreckovic
ac84b221c9 Bug 1235613 - Make gfxCriticalError/Note strings in gfx/ unique. r=jrmuizel
--HG--
extra : transplant_source : %8F%1DcB%3A%25%94%95G%EF%B4U%CE%B9%10%E1%A3%BC%E2%3D
2015-12-29 14:03:58 -05:00
Bas Schouten
e8e3860c44 Bug 1235407 - Part 3: Force a reset when OpenSharedHandle fails. r=milan 2015-12-30 01:30:47 +01:00
Kearwood (Kip) Gilbert
0c83ce5c05 Bug 1182048 - Part 2: Implement e10s support for WebVR,r=vlad 2015-09-17 14:23:13 -07:00
Nicolas Silva
9bc4b1d4e6 Bug 1228952 - Move texture metadata out of the BufferTextureClient/Host's buffer. r=Sotaro 2015-12-16 19:50:58 +01:00
Nathan Froyd
4094e18ff5 Bug 1233069 - add override declarations to Windows graphics headers; r=Bas
This change silences a number of -Winconsistent-missing-override
warnings on clang-cl.
2015-12-16 10:41:21 -05:00
Milan Sreckovic
06d79c4606 Bug 1219494 - Part 4. gfx/layers and gfxCrash. r=mchang 2015-12-10 13:01:00 +01:00
Nicolas Silva
189b50c6c8 Bug 1222123 - Warning fix in CompositorD3D11.cpp. r=Bas 2015-12-04 11:23:53 +01:00
Bas Schouten
93e36d199e Bug 1229533: Ensure our RenderingTargetView for the backbuffer and the backbuffer itself have no lingering references, and log if they do. r=milan 2015-12-04 04:20:29 +01:00
David Anderson
b48603c10c Implement the direct DXGI drawing model for plugins. (bug 1217665 part 7, r=mattwoodrow)
--HG--
extra : rebase_source : 8e1322c9ea49fc61226a06ab2e2beea525db0ba8
2015-12-02 11:31:17 -08:00
David Anderson
978468f6f4 Allow asynchronous D3D11 TextureClients on the main thread. (bug 1217665 part 5, r=nical)
--HG--
extra : rebase_source : a06aecbf63b0cb55b388da75c50e211fbb95d5c8
2015-12-02 11:31:17 -08:00
Nicholas Nethercote
af08555b74 Bug 1228125 (part 3) - Remove nsIWidget::GetClientBoundsUntyped(). r=botond.
--HG--
extra : rebase_source : 5e8cb05213c33983d7deebe0a36f2a4f6ac66375
2015-11-25 20:55:36 -08:00
Nicolas Silva
8baf8f2c04 Bug 1200595 - Consolidate the TextureClient's destruction logic. r=mattwoodrow 2015-11-20 14:25:03 +01:00
Nicolas Silva
ce2636044e Bug 1200595 - Merge TextureClient and ClientTexture back into TextureClient. r=mattwoodrow 2015-11-20 14:25:00 +01:00
Nicolas Silva
a3f38d948e Bug 1200595 - D3D11 TextureData implementation. r=Bas 2015-10-15 17:53:37 +02:00
Nicolas Silva
380cf2ea18 Bug 1200595 - Introduce TextureData and implement it for X11. r=mattwoodrow, Bas, sotaro 2015-10-13 18:48:48 +02:00
Wes Kocher
72261b4523 Backed out 12 changesets (bug 1200595) for b2g mochitest crashes in SharedBufferManagerParent CLOSED TREE
Backed out changeset cf8cf1a039dd (bug 1200595)
Backed out changeset 65da564f952c (bug 1200595)
Backed out changeset 7663208f1582 (bug 1200595)
Backed out changeset fc1fbb97c8eb (bug 1200595)
Backed out changeset 3ad5a4c457fe (bug 1200595)
Backed out changeset add3fe9afc0c (bug 1200595)
Backed out changeset 68aba6b39588 (bug 1200595)
Backed out changeset ab326c34f1cf (bug 1200595)
Backed out changeset ed34bc528a1b (bug 1200595)
Backed out changeset 0dc93424546c (bug 1200595)
Backed out changeset 8cc12f12f3d1 (bug 1200595)
Backed out changeset bb84403701b7 (bug 1200595)

--HG--
extra : commitid : AMC6i05xyTh
2015-11-24 10:07:02 -08:00
Bas Schouten
662684de75 Bug 1216366: Ensure D3D11 uploads the entire surface the first time for component alpha textures. r=nical 2015-11-24 17:04:13 +01:00
Nicolas Silva
c89268e8b1 Bug 1200595 - Consolidate the TextureClient's destruction logic. r=mattwoodrow 2015-11-20 14:25:03 +01:00
Nicolas Silva
c1b94d01e8 Bug 1200595 - Merge TextureClient and ClientTexture back into TextureClient. r=mattwoodrow 2015-11-20 14:25:00 +01:00
Nicolas Silva
2eea103a37 Bug 1200595 - D3D11 TextureData implementation. r=Bas 2015-10-15 17:53:37 +02:00
Nicolas Silva
c3df7801f0 Bug 1200595 - Introduce TextureData and implement it for X11. r=mattwoodrow, Bas, sotaro 2015-10-13 18:48:48 +02:00
Milan Sreckovic
bd6e14f6c6 Bug 1204922 - Part 3. Report failed before HandleError call. r=bas
--HG--
extra : rebase_source : 4c44c5fe2df0f067dbfc5e6053561b1005911e8c
2015-11-19 10:19:00 +01:00
Carsten "Tomcat" Book
1a584aca79 Backed out 13 changesets (bug 1200595) for possibly breaking Reftest [TC] Crashtest tc-R on a CLOSED TREE
Backed out changeset e7278af0a484 (bug 1200595)
Backed out changeset c13228f84d85 (bug 1200595)
Backed out changeset 4b88e8a3d8af (bug 1200595)
Backed out changeset e55376bd2cf8 (bug 1200595)
Backed out changeset 9c27c8e2c021 (bug 1200595)
Backed out changeset a369a2983ceb (bug 1200595)
Backed out changeset 09e71ba15ea8 (bug 1200595)
Backed out changeset b555b130d439 (bug 1200595)
Backed out changeset 6819f6d82287 (bug 1200595)
Backed out changeset a8cdfbf443d8 (bug 1200595)
Backed out changeset 0092c9d7a86b (bug 1200595)
Backed out changeset 6dc38a1e6073 (bug 1200595)
Backed out changeset fe2164aa1468 (bug 1200595)
2015-11-20 16:55:26 +01:00
Nicolas Silva
b1e3e38bb1 Bug 1200595 - Build fix on a CLOSED TREE 2015-11-20 15:03:11 +01:00
Nicolas Silva
4b5d77112d Bug 1200595 - Consolidate the TextureClient's destruction logic. r=mattwoodrow
* * *
Bug 1200595 - Rebase fixes
2015-11-20 14:25:03 +01:00
Nicolas Silva
25167273f1 Bug 1200595 - Merge TextureClient and ClientTexture back into TextureClient. r=mattwoodrow 2015-11-20 14:25:00 +01:00
Nicolas Silva
943fe8686e Bug 1200595 - D3D11 TextureData implementation. r=Bas 2015-10-15 17:53:37 +02:00
Nicolas Silva
62fdc49f48 Bug 1200595 - Introduce TextureData and implement it for X11. r=mattwoodrow, Bas, sotaro 2015-10-13 18:48:48 +02:00
David Anderson
30e9c14eff Null-check D3D10 devices in a few places. (bug 1225645, r=bas) 2015-11-19 15:04:46 -08:00
Phil Ringnalda
04f94361ed Back out changeset 98bd7a8e4705 (bug 1225645) for Windows build bustage
CLOSED TREE
2015-11-18 18:48:14 -08:00
David Anderson
ca5b902f03 Null-check D3D10 devices in a few places. (bug 1225645, r=bas) 2015-11-18 12:16:54 -08:00
Bas Schouten
1106ab221f Bug 1204922: When ResizeBuffers fails, make no attempt to do subsequent paints until it succeeds again. r=milan 2015-11-13 13:04:44 +01:00
Milan Sreckovic
e5971201e2 Bug 1219494 - Part 1. TextureD3D11 and gfxDevCrash instead of MOZ_CRASH where appropriate. r=mchang
--HG--
extra : rebase_source : bf4cd63aca2e927a56f3ee682a0e24d76578bfba
2015-11-09 11:28:00 +01:00
Nicholas Nethercote
ad0dd8414a Bug 1223310 (part 2) - Use LayoutDeviceIntRect for bounds-related functions in nsIWidget. r=kats.
The patch renames the existing functions (GetBounds(), GetClientBounds(), etc)
by adding an |Untyped| suffix. It then adds typed equivalents, and uses those
typed equivalents in all the call sites where it's easy to do so. The trickier
remaining call sites are converted to use the Untyped-suffix version.

--HG--
extra : rebase_source : 6bfb15bfc4698e2eba7d4db55497299d3dffcd51
2015-11-09 21:37:32 -08:00
Milan Sreckovic
cec30dd69d Bug 1222033 - Rename gfxCrash to gfxDevCrash. r=jrmuizel 2015-11-09 07:28:00 +01:00
Milan Sreckovic
d0d73eaf51 Bug 1204922 - More information about crashes. r=bas 2015-10-27 14:11:00 +01: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
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
Milan Sreckovic
f18b559b55 Bug 1200021 - Part 2: more diagnostics. r=bas
--HG--
extra : rebase_source : 41c8648c26d2b7a8c2ee68b823e911b0fdce7f96
2015-09-24 10:44:40 -04:00
David Anderson
497eea35bc Disable screen and multiply mix-blend-mode support in the D3D11 and OGL compositors. (bug 1135271, r=mattwoodrow) 2015-10-07 16:38:19 -07:00
David Anderson
3716363c72 Remove the static compositor backend variable. (bug 1211109 part 2, r=mattwoodrow) 2015-10-05 23:39:00 -07:00
David Anderson
f35bf0138b Log initialization failures in CompositorD3D11.cpp. (bug 1211109 part 1, r=mattwoodrow) 2015-10-05 23:38:40 -07:00
David Anderson
1befc42825 Don't use Direct2D if CompositorD3D11::Initialize fails. (bug 1208638, r=jrmuizel) 2015-10-01 23:06:43 -07: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
David Anderson
e0b771c314 Fail gracefully when we can't get a texture sync handle. (bug 1207665 part 4, r=bas,vladan) 2015-09-29 11:20:01 -07:00
David Anderson
ce3e7b5ae7 Get the sync texture's sync handle during compositor initialization, where it can be made to fail gracefully. (bug 1207665 part 3, r=bas) 2015-09-29 11:16:16 -07:00
Jeff Muizelaar
37ae0e16b5 Bug 1194335. Disable partial present on Nvidia hardware. r=bas
I have a theory that bug 1189940 is caused by partial present. This
is an attempt to see if that's true.

--HG--
extra : rebase_source : 663613989e5a1b012909e1335595fac495c81478
2015-09-21 11:52:01 -04:00
Nicolas Silva
953150ec3d Bug 1072313 - Never call TextureClient::KeepUntilFullDeallocation off the ipdl thread. r=mattwoodrow 2015-09-21 16:54:40 +02:00
Wes Kocher
c6aa53d157 Backed out changeset 09c2a214244b (bug 1072313) for Windows textureclient crashes CLOSED TREE 2015-09-21 10:37:07 -07:00
Nicolas Silva
554272fa7f Bug 1072313 - Never call TextureClient::KeepUntilFullDeallocation off the ipdl thread. r=mattwoodrow 2015-09-21 16:54:40 +02:00
David Anderson
b8fb04e7b8 Handle screen and multiply blend modes in the D3D11 compositor. (bug 1203829 part 4, r=mattwoodrow) 2015-09-15 01:04:37 -07:00
David Anderson
250032dd90 Refactor shader initialization in CompositorD3D11. (bug 1203829 part 3, r=mattwoodrow) 2015-09-15 01:04:17 -07:00
David Anderson
4dcdb71497 Compile shaders with newer fxc. (bug 1203829 part 2, r=mattwoodrow) 2015-09-15 01:04:09 -07:00
Matt Woodrow
fb01190fe1 Bug 1199361 - Add texture memory reporters for YCbCr TextureClients. r=jrmuizel
--HG--
extra : rebase_source : 56c1ec34c1d4285117fef854aebaf2bbf8b1a93a
2015-09-01 15:33:40 -04:00
Carsten "Tomcat" Book
12570b009b Backed out changeset edc0db4368a0 (bug 1199361) for suspicion of making OS X 10.6 reftest failing very frequently 2015-09-03 08:39:48 +02:00
Matt Woodrow
16d971851f Bug 1199361 - Add texture memory reporters for YCbCr TextureClients. r=jrmuizel
--HG--
extra : rebase_source : d3646e8481e0767d707f2e7e1bfdad84fd58550f
2015-09-01 15:33:40 -04:00
Jamie Nicol
ff450822a4 Bug 1192058 - For DXGI_PRESENT_PARAMETERS, set pDirtyRects to nullptr if DirtyRectsCount == 0. r=BenWa 2015-08-18 15:11:25 +01:00
Jamie Nicol
991ab71c34 Bug 1191463 - Handle possible ID3D10Texture2D::Map() failure. r=Bas
--HG--
extra : rebase_source : 848a578cce2e05580a1e0374f799931f1b4dfb0b
2015-08-18 17:53:56 +01:00
Matt Woodrow
d07dcdfcf6 Bug 1195527 - Part 1: Move D3D11 texture allocation into the TextureClient. r=jrmuizel 2015-08-18 21:04:14 -04:00
Matt Woodrow
cbdfff6689 Bug 1195531 - Don't discard d3d11 textures when we move the TextureSource to a new compositor. r=jrmuizel,nical 2015-08-18 14:32:33 -04:00
Jeff Muizelaar
5d1283f868 Bug 1194335. Use a StackArray for RECTS so we see them in the minidumps. r=mattwoodrow
It will be faster too.
2015-08-13 17:01:10 -04:00
Bas Schouten
f99f040ff9 Bug 1190950: Check mappings and surfaces for UpdateFromSurface more robustly. r=mattwoodrow 2015-08-06 02:29:47 +00:00
Vladimir Vukicevic
0fbbbcc354 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
15bf1c4c1d Bug 1167326, fix up VR distortion constant buffer; r=bas 2015-07-29 14:39:47 -04:00
Vladimir Vukicevic
a0b4b85e51 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
0827824d86 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
cd29824fb8 Bug 1161670, cache D3D11 ShaderResourceView on TextureSourceD3D11; r=bas,jrmuizel 2015-05-05 14:35:29 -04: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
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
Nicolas Silva
1669cfdfef Bug 1180688 - Detect whether the widget will be able to present frames with BasicCompositor on Mac. r=mstange 2015-07-13 16:46:48 +02: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
Nathan Froyd
974d8120f2 Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Matt Woodrow
3d198b14d2 Bug 1176570 - Make sure all shared texture handles are opened correctly before attempting to use them. r=jrmuizel 2015-06-26 14:07:57 -07:00
Mason Chang
af9e236e6e Bug 1176446 - TextureClientD3D11 should take into account the layer backend when allocating a surface. r=bas 2015-06-25 08:07:42 -07:00
Milan Sreckovic
ffec6a9914 Bug 1145143 - When we fail to UpdateRenderTarget, report the size as well. r=bas 2015-06-18 12:20:00 +02:00
Matt Woodrow
5925a945d1 Bug 1173983 - Use R8 textures for d3d11 alpha textures since it appears to be better supported. r=Bas 2015-06-15 12:30:34 -04:00
Andrew Comminos
1013161996 Bug 1167356 - Handle return value of DataSourceSurface::Map wherever possible. r=Bas
--HG--
extra : rebase_source : fe4fcb9c3a89e2573e6fde423ed8d96f31e00f14
2015-06-11 13:06:23 -04:00
David Major
eb73e64e7c Bug 1173107: Add hexa() around various hr logging. r=jrmuizel a=KWierso 2015-06-09 16:48:59 -04:00
Ryan VanderMeulen
e4040f9e04 Bug 1170143 - Fix Windows bustage to reopen a CLOSED TREE. 2015-06-05 11:31:16 -04:00
Nicolas Silva
e845d9219c Bug 1170143 - Add some error checks around the creation of dxgi ycbcr video frames. r=Bas 2015-06-05 16:19:11 +02:00
Amanda Sambath
376d6d03c3 Bug 1158120 - Replace nsIntSize by mozilla::gfx::IntSize in gfx/layers. r=nical 2015-06-03 13:45:24 +02:00
Milan Sreckovic
3a45f41851 Bug 1145143 - Check if buffer size is correct before calling the update. r=nical
--HG--
extra : rebase_source : 8bc66d9a332cb978a1b649f2f79a2501ecbc7bc6
2015-06-01 14:30:02 -04:00
Kearwood (Kip) Gilbert
e25ede39ea Bug 766345 - Part 1 - Implement DEAA Antialiasing for transformed layers (v5 Patch). r=vladimir, r=djg 2014-12-17 16:28:45 -08:00
Nathan Froyd
db188ea282 Bug 1160485 - remove implicit conversion from RefPtr<T> to TemporaryRef<T>; r=ehsan
Having this implicit conversion means that we can silently do extra
refcounting when it's completely unnecessary.  It's also an obstacle to
making RefPtr more nsRefPtr-like, so let's get rid of it.
2015-05-01 09:14:16 -04:00
Thibaud Backenstrass
5e604392a5 Bug 1158122 - Remove some occurences of nsIntRect in gfx/layers/. r=nical 2015-05-07 11:07:35 +02:00
Ethan Lin
b6a9cb595a Bug 1053563 - Use a static create function to replace InitWith for TextureClient. r=nical 2015-04-29 19:34:00 +02:00
Bas Schouten
f80640ea50 Bug 1116812 - Consider DXGI_ERROR_INVALID_CALL a recoverable error for IDXGISwapChain::GetBuffer. r=jrmuizel 2015-04-29 09:19:00 -04:00
Bas Schouten
7f7ef584ca Bug 1143806: Tolerate timeouts occurring if a device driver is in the process of resetting. r=jrmuizel 2015-04-24 17:09:42 +02:00
Kartikaya Gupta
cd5b55f8d6 Bug 1039866 - Rip out a bunch of metro-only code. r=jimm,gavin,rstrong 2015-04-23 15:10:30 -04:00
Andrea Marchesini
ade2831035 Bug 1156632 - Remove unused forward class declarations - patch 6 - the rest of the tree, r=ehsan 2015-04-22 08:29:24 +02:00
Nicolas Silva
cfff5e52c5 Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
Chris Pearce ext:(%2C%20Matt%20Woodrow%20%3Cmwoodrow%40mozilla.com%3E)
3916a66ac9 Bug 875247 - Add support for DXVA2 via D3D11. r=cpearce,gps,padenot 2015-03-31 18:21:15 +13:00
Nicolas Silva
e81603747c Bug 1142516 - Improve assertions and logging on the compositor side. r=Bas 2015-04-07 16:17:15 +02:00
Nicolas Silva
0b1f75bea0 Bug 1132854 - Remove the gfx::ToIntSize conversion helper. r=Bas 2015-04-07 16:08:57 +02:00
Vladimir Vukicevic
24157e2002 Bug 1148009; Add support for Cardboard (and other rotation-sensor based VR) in Firefox for Android; r=jrmuizel 2015-04-01 16:02:20 -04:00
Nicolas Silva
e3eaf89e3f Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc 2015-03-29 16:59:08 +02:00
Nicolas Silva
5ea6c11e06 Bug 1146912 - Finish replacing TextureHost::GetTextureSource by BindTextureSource. r=sotaro 2015-03-27 11:16:34 +01:00
Nicolas Silva
da6cace77d Bug 1147894 - Only use non-null compositors with TextureHost::SetCompositor. r=sotaro 2015-03-27 11:16:18 +01:00
Bas Schouten
64fec42b5d Bug 1147728: When using WARP, don't try to create a synchronization texture. This will fail on Windows 7. r=jrmuizel 2015-03-27 04:45:54 +01:00
Matt Woodrow
b47f624ddc Bug 1146313 - Null check pData in UpdateConstantBuffers. r=jrmuizel
--HG--
extra : rebase_source : 468e7af0dc2208962892610c4cf2f8033d39fc60
2015-03-26 13:06:21 +13:00
Matt Woodrow
439798a572 Bug 1146315 - Part 2: Release D3D11 YUV textures on the main thread. r=nical
--HG--
extra : rebase_source : 6d8d17dd02bb63a8ea0adcd94de891aad369d6dc
2015-03-26 13:05:25 +13:00
Matt Woodrow
abe801b442 Bug 1145585 - Hold a ref to the right texture. r=jmuizelaar
--HG--
extra : rebase_source : e000ff00ef1a25e040572a21775cfbf0efb32485
2015-03-26 12:57:03 +13:00
Matt Woodrow
28fe00ec0c Bug 1145513 - Upload YCbCr image data on the client side when using d3d9 layers. r=nical
--HG--
extra : rebase_source : be290c542566bc5650b45bfc2f892c8edf5fd14a
2015-03-23 15:13:56 +13:00
Jeff Muizelaar
33f4dd4b03 Bug 1144136. Remove unneeded Flush() from D3D11 compositor. r=bas
I don't think we need this because the Present() call has an implicit flush.

--HG--
extra : rebase_source : f82939a6c4a5ff9e962ec4d312dd1db9211085cd
2015-03-21 15:07:06 -04:00
Ehsan Akhgari
883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Matt Woodrow
67c8f780b6 Bug 1138967 - Part 3: Add D3D11 YCbCr texture clients and upload on the client side. r=nical
--HG--
extra : rebase_source : 90d0afdc61332b36032c8ccbf28294f77dd48a8b
2015-03-19 10:17:13 +13:00
Nicolas Silva
4609707f8e Bug 1142143 don't early return in TextureClientD3D11::Unlock if readback fails. r=jrmuizel 2015-03-11 18:35:35 +01:00
Milan Sreckovic
76dd5cd892 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
4e7d60703f Bug 1131370: Try to ignore transient errors and increase D3D11 timeout as well. r=milan 2015-03-03 14:28:50 +01:00
Bas Schouten
42d9427fd6 Bug 1131370: Give content side more time to finish its copy. r=jrmuizel 2015-02-22 22:52:47 +00:00
Matt Woodrow
5ea802bd9a Bug 1128170 - Use UniquePtr for TextureClient KeepAlive objects to make sure we don't leak them. r=jrmuizel 2015-02-18 13:35:30 +13:00
Matt Woodrow
01eb91c854 Bug 1127925 - Lazily open shared handles in DXGITextureHostD3D11 to avoid holding references to textures that might not be used. r=jrmuizel 2015-02-13 14:23:43 +13:00
Bas Schouten
bb55e4e8ab Bug 1118322: Block explicitly for vblank when presenting when using WARP. r=jrmuizel 2015-02-09 16:35:48 +01:00
Jeff Muizelaar
cba312728d Bug 1124847. Fix apostrophe typos. 2015-01-30 00:12:01 -05:00
Jeff Muizelaar
f637b9c41a Bug 1124847. Track D3D11 shared texture usage in about:memory. r=bas
This will hopefully help us track down large amounts of write-combined
mappings that we see.

try: -b do -p win32,win64 -u all -t none

--HG--
extra : rebase_source : 612223046a34a0e7ba179fca4fef1d4c79e18ee8
2015-01-27 20:09:34 -05:00
Milan Sreckovic
5c1754eb7a Bug 1088833 - A bit of a clean up of warnings, and catch bad draw target in the d3d11 canvas case. r=bschouten 2015-01-20 12:47:29 -05:00
Bas Schouten
3b62ac5b76 Bug 1117925: Make sure to invalidate the entire window when the size changes. r=jrmuizel 2015-01-21 18:00:31 +01:00
Bas Schouten
4983028737 Bug 1119854: Crash when AcquireSync takes more than 10 seconds. r=jrmuizel 2015-01-10 04:50:02 +01:00
Bas Schouten
a5ebe274e9 Bug 1107718 - Addendum: Properly address review comments. r=nical 2015-01-08 00:12:29 +00:00
Bas Schouten
9ab9d86962 Bug 1107718: Properly deal with a D3D11 device reset. r=nical 2015-01-08 00:10:49 +00:00
Ryan VanderMeulen
20d7991ef8 Bug 1114577 - GFX cleanups now that Windows SDK 8.1 is the minimum supported version. r=jmuizelaar, r=glandium 2015-01-07 11:32:07 -05:00
Nicholas Nethercote
b4adaf93a3 Bug 1117639 - Remove AbortFrame() because it is dead. r=bas.
--HG--
extra : rebase_source : 7df4840fb99dc025ee102d9697097caa4034fa6d
2015-01-05 15:54:51 -08:00
Ethan Lin
945540c527 Bug 1042696 - Set allocator to TextureClient from constructor. r=nical 2014-12-22 03:49:00 -05:00
Milan Sreckovic
8445ba0749 Bug 1101685 - Optionally assert in loggers, default to true on gfxCriticalError. Clean up the calls where large texture sizes were triggering the asserts in tests. r=nical 2014-12-17 17:54:04 -05:00
Vladimir Vukicevic
18fcfec1c7 Bug 1036602 - Regenerate D3D11 shaders; r=Bas
From 11ab35cf793e6a2a0342b4e1a761a6f4cc394ff5 Mon Sep 17 00:00:00 2001
---
 gfx/layers/d3d11/CompositorD3D11Shaders.h   | 282 ++++++------
 gfx/layers/d3d11/CompositorD3D11ShadersVR.h | 638 ++++++++++++++++++++++++++++
 2 files changed, 786 insertions(+), 134 deletions(-)
 create mode 100644 gfx/layers/d3d11/CompositorD3D11ShadersVR.h
2014-07-09 12:28:05 -07:00
Vladimir Vukicevic
8cf3cb0f2d Bug 1036602 - Fix up D3D11 genshaders.sh script; r=bas
From 42aa031e5b36efe5603525c7967557fec7e09ec5 Mon Sep 17 00:00:00 2001
---
 gfx/layers/d3d11/genshaders.sh | 74 +++++++++++++++++++++++++-----------------
 1 file changed, 45 insertions(+), 29 deletions(-)
2014-07-09 12:27:38 -07:00
Vladimir Vukicevic
883e1dee4c Bug 1036602 - rename d3d11 .fx files to .hlsl; r=bas
From 0117494b71e0b9ea01d8b552523529cf305ab919 Mon Sep 17 00:00:00 2001
---
 gfx/layers/d3d11/CompositorD3D11.fx     | 279 --------------------------------
 gfx/layers/d3d11/CompositorD3D11.hlsl   | 279 ++++++++++++++++++++++++++++++++
 gfx/layers/d3d11/CompositorD3D11VR.fx   |  71 --------
 gfx/layers/d3d11/CompositorD3D11VR.hlsl |  71 ++++++++
 gfx/layers/d3d11/genshaders.sh          |  28 ++--
 5 files changed, 364 insertions(+), 364 deletions(-)
 delete mode 100644 gfx/layers/d3d11/CompositorD3D11.fx
 create mode 100644 gfx/layers/d3d11/CompositorD3D11.hlsl
 delete mode 100644 gfx/layers/d3d11/CompositorD3D11VR.fx
 create mode 100644 gfx/layers/d3d11/CompositorD3D11VR.hlsl
2014-12-17 11:47:06 -05:00
Vladimir Vukicevic
145ebfeec2 Bug 1036602 - add D3D11 support for VR rendering; r=bas
From fbb1e2ba9936896a1eb932585218401f4c95e411 Mon Sep 17 00:00:00 2001
---
 gfx/layers/d3d11/CompositorD3D11.cpp  | 212 +++++++++++++++++++++++++++++++++-
 gfx/layers/d3d11/CompositorD3D11.fx   |   1 +
 gfx/layers/d3d11/CompositorD3D11.h    |   9 ++
 gfx/layers/d3d11/CompositorD3D11VR.fx |  71 ++++++++++++
 4 files changed, 290 insertions(+), 3 deletions(-)
 create mode 100644 gfx/layers/d3d11/CompositorD3D11VR.fx
2014-07-09 12:26:51 -07:00
Jacek Caban
01dd5be8c8 Bug 1107297 - Crosscompilation fixup. 2014-12-14 14:36:11 +01:00