Commit Graph

182 Commits

Author SHA1 Message Date
Nicolas Silva
31b06f7324 Bug 1104008 - Make sure the D3D11 swapchain's textures are cleared before resizing. r=Bas. 2014-12-02 14:28:19 +01:00
Nicolas Silva
eccf760d11 Bug 1086670 - Add more gfxCriticalError logging in the D2D backend. r=jrmuizel 2014-11-26 21:05:01 +01:00
Benoit Girard
a52fc33128 Bug 1101650 - Fix mClearOnBind logic. r=jmuizel 2014-11-19 15:29:23 -05:00
Milan Sreckovic
79fb503b37 Bug 1074952 - Part 6. Fully qualify the appropriate logs in the logging macros, otherwise we can't call these from other namespaces. An example in non-gfx/2d where it would not have worked without this change. r=botond 2014-11-18 10:51:39 -05:00
Jeff Muizelaar
ad57218e47 Bug 1101160. D3D11: Make switch statement better. r=bas
This is the order one would expect.

--HG--
extra : rebase_source : 299b3814983d42908c2507028bb1c16c64b0f25f
2014-11-18 15:49:39 -05:00
Benoit Girard
a50adb60a6 Bug 1087530 - Retain container's intermediate surfaces for up to one frame. r=jmuizelaar 2014-11-03 17:27:32 -05:00
Jeff Muizelaar
6514be6291 Bug 1088414. Backout "Use a single synchronized texture for d3d11"
https://hg.mozilla.org/mozilla-central/rev/e2efedec2d60
2014-11-17 14:20:05 -05:00
Matt Woodrow
a543eacc24 Bug 1088414. Use a single synchronized texture for d3d11. r=bas,f=jrmuizel
Calling AcquireSync on textures created with
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX appears to be really slow, this really
bites us with the number of textures involved when tiling.

I've also tested using ID3D11Query to check when work is completed, this also
appears to be pretty slow.

This instead just uses a single texture with a keyedmutex, and makes sure we
draw to it last and lock it first. It's pretty hacky, but seems to work really
well so far.

--HG--
extra : rebase_source : bf5f56751f993e507fcd1e5c386fb1fc9a3f73af
2014-10-22 15:37:00 +13:00
Carsten "Tomcat" Book
9a3e3d4bb8 Backed out changeset 48667a14f94d (bug 1092360) for test bustage / crashes on a CLOSED TREE 2014-11-14 08:14:22 +01:00
Benoit Girard
c0cfe730fd Bug 1092360 - Avoid redundant framebuffer switches. r=jrmuizel 2014-11-12 17:39:17 -05:00
Jeff Muizelaar
3b935d0a21 Bug 1089364. Avoid trying to resize the swap chain to a negative size. r=bas
This was causing GetBuffer to return DXGI_ERROR_INVALID_CALL

--HG--
extra : rebase_source : 49e62fd5dda1e28268218cffca4ea1ce7af1b6ea
2014-11-13 10:10:48 -05:00
Jacek Caban
4129770618 Bug 1092130 - Fixed build errors found by mingw after bug 1076698 landed (-Werror=missing-braces errors). r=cpearce 2014-11-03 10:28:52 +01:00
Bas Schouten
9859be600a Bug 1064864. Ensure the copying bounds are sane. r=jrmuizel
This prevents things from going really bad on some drivers.

--HG--
extra : rebase_source : c237cf3e6a6174696ebe6d41562a30c8cc0e564d
2014-11-01 14:02:20 -04:00
Nicolas Silva
e4d260ddf2 Bug 1089364 - Add some missing D3D11 error checks. r=Bas 2014-10-27 13:52:17 +01:00
Jeff Gilbert
c529728676 Bug 1088417 - Switch from REPEAT to CLAMP for D3D11. - r=nical 2014-10-23 17:10:58 -07:00
Jeff Gilbert
3ca0b077db Bug 1088417 - DecomposeIntoNoRepeatRects for D3D11. - r=nical 2014-10-23 17:08:06 -07:00
Nicolas Silva
dba3476740 Bug 1087270 - Check more D3D11 result codes and assert in debug builds. r=jrmuizel 2014-10-23 16:22:41 +02:00
Carsten "Tomcat" Book
8e3a6eb0cc Backed out changeset 8a39622aa24a (bug 1087270) for bustage 2014-10-23 13:12:16 +02:00
Nicolas Silva
ac673f7fed Bug 1087270 - Check more D3D11 result codes and assert in debug builds. r=jrmuizel 2014-10-23 12:06:14 +02:00
jdashg
a070a30c6a Bug 1066280 - Remove SurfaceStream. - r=kamidphish,mattwoodrow 2014-10-07 21:15:39 -07:00
Nicolas Silva
d74e31effc Bug 1077307 - Merge NewTextureSource and TextureSource. r=sotaro 2014-10-07 15:58:59 +02:00
Nicolas Silva
d804815b14 Bug 1044975 - Don't crash if mapping D3D11 shader constant buffers fails. r=Bas 2014-10-06 14:53:42 +02:00
Nicolas Silva
71b5f35d99 Bug 1061713 - Don't crash release builds if a D3D TextureClient is unlocked without being locked. r=Bas 2014-09-29 11:24:54 +02:00
Nicolas Silva
e207fcc8fd Bug 1054581 - Have all compositor backends behave consistently when creating a zero-sized intermediate render target. r=jrmuizel 2014-09-26 15:02:35 -04:00
Markus Stange
131bfce4c5 Bug 1073103 - Rename ThebesLayer to PaintedLayer. r=roc
--HG--
rename : gfx/layers/basic/BasicThebesLayer.cpp => gfx/layers/basic/BasicPaintedLayer.cpp
rename : gfx/layers/basic/BasicThebesLayer.h => gfx/layers/basic/BasicPaintedLayer.h
rename : gfx/layers/client/ClientThebesLayer.cpp => gfx/layers/client/ClientPaintedLayer.cpp
rename : gfx/layers/client/ClientThebesLayer.h => gfx/layers/client/ClientPaintedLayer.h
rename : gfx/layers/client/ClientTiledThebesLayer.cpp => gfx/layers/client/ClientTiledPaintedLayer.cpp
rename : gfx/layers/client/ClientTiledThebesLayer.h => gfx/layers/client/ClientTiledPaintedLayer.h
rename : gfx/layers/composite/ThebesLayerComposite.cpp => gfx/layers/composite/PaintedLayerComposite.cpp
rename : gfx/layers/composite/ThebesLayerComposite.h => gfx/layers/composite/PaintedLayerComposite.h
rename : gfx/layers/d3d10/ThebesLayerD3D10.cpp => gfx/layers/d3d10/PaintedLayerD3D10.cpp
rename : gfx/layers/d3d10/ThebesLayerD3D10.h => gfx/layers/d3d10/PaintedLayerD3D10.h
rename : gfx/layers/d3d9/ThebesLayerD3D9.cpp => gfx/layers/d3d9/PaintedLayerD3D9.cpp
rename : gfx/layers/d3d9/ThebesLayerD3D9.h => gfx/layers/d3d9/PaintedLayerD3D9.h
2014-09-26 13:06:08 -04:00
Nicolas Silva
ab23cc4fba Bug 1070018 - Log HRESULT error codes as hexadecimal values rather than signed integers. r=Bas 2014-09-23 11:35:39 -04:00
Bas Schouten
2e768633ad Bug 1068613 - Addendum: Fix bustage in ASAN builds. r=bustage on a CLOSED TREE 2014-09-18 00:25:23 +02:00
Nicolas Silva
1d405a8655 Bug 1068613 - Part 3: Log failures in D2D, D2D 1.1 and the D3D11 TextureClient. r=bas 2014-09-17 23:23:09 +02:00
Nicolas Silva
61aef5d8c8 Bug 1061699 - Only crash debug builds if BorrowDrawTarget is called on an unlocked TextureClient. r=Bas 2014-09-16 14:32:24 +02:00
Bas Schouten
124a96d56c Bug 1066138: Disable using TextureClientD3D11 for A8 surfaces and fix various TextureClientD3D11 A8 bugs. r=jrmuizel 2014-09-14 23:51:31 +02:00
Matt Woodrow
b14244ee9a Bug 1046550 - Part 3: Use Direct2D 1.1 when preffed on. r=bas 2014-09-14 23:51:27 +02:00
Jeff Muizelaar
876ec2d266 Bug 1064479. Redo how screen rotation is implemented on B2G/Layers. r=nical,mwoodrow
Currently we use a world transform on the LayerManager. This gets passed to the
screen render target which adjusts the gl transform to accomplish the rotation.
This causes a lot of the system to have to know about the transform.

Instead we can just bake the transform into the root layer's shadow transform.
Everything now mostly just works.

--HG--
extra : rebase_source : e0e170d191eef5887a2e6b17f71ac79037033006
2014-09-10 15:59:00 -04:00
Jonathan Watt
b3072839ca Bug 1065031, part 2 - Changes to Moz2D consuming code to update callers of Moz2D Matrix's Translate, Scale and Rotate methods to use these methods' new names. r=Bas 2014-09-10 18:29:35 +01:00
Jonathan Watt
581078dcb7 Bug 1065127 - Avoid Matrix().Translate()/Scale()/Rotate() multiplication in lots of places. r=Bas 2014-09-10 14:26:12 +01:00
Carsten "Tomcat" Book
d9c5bea4e5 Backed out changeset e6b766d8a815 (bug 1065127) for bustage 2014-09-10 14:30:36 +02:00
Jonathan Watt
cc5bf95ddf Bug 1065127 - Avoid Matrix().Translate()/Scale()/Rotate() multiplication in lots of places. r=Bas
--HG--
extra : rebase_source : ef075258c31973c4943b9b3a9229685a9bb83917
2014-09-10 11:45:42 +01:00
Jeff Gilbert
e6b31f9bc4 Bug 1052234 - Allow RGBA-order D3D11 TextureHosts. - r=bas 2014-08-30 16:27:32 -07:00
Jeff Muizelaar
c502d21c20 Bug 1057716. d3d11: Properly copy the background. r=bas
Previously we were copying an empty box.
2014-08-26 14:33:03 -04:00
Jacek Caban
6192a8ddfd Bug 1055664 - Use static instead of fiend function for StartTaskThread. r=bas.schouten 2014-08-26 13:50:38 +02:00
Nicolas Silva
9abece8784 Bug 1047765 - Pass the proper allocation flags in TextureClient::CreateSimilar. r=Bas 2014-08-06 14:40:07 +02:00
Ehsan Akhgari
3e495e7834 Bug 1047614 - Give ReadbackManagerD3D11 a private destructor; r=jrmuizel 2014-08-05 17:57:24 -04:00
Bas Schouten
2b9855ad33 Bug 947781 - Part 2: Add the ability to readback texture data to TextureClient. r=nical 2014-07-30 15:38:46 +02:00
Ed Morley
fbefd28529 Backed out changeset c4ecea1452e9 (bug 947781) 2014-07-30 14:54:08 +01:00
Bas Schouten
9a0677f6e4 Bug 947781 - Part 2: Add the ability to readback texture data to TextureClient. r=nical 2014-07-30 15:38:46 +02:00
Nicolas Silva
feaa5c6996 Bug 1043929 - Ensure that a locked TextureHost can give access to a valid TextureSource for some of the texture types. r=Bas 2014-07-28 14:58:38 +02:00
Nicolas Silva
6e9b2cde6d Bug 1042052 - Add TextureClient::CreateSimilar and have component alpha buffer be of the same type. r=sotaro 2014-07-25 11:24:46 +02:00
Nicolas Silva
5df70fbd0d Bug 1015718 - Don't crash creating a TextureHost if there is no device or if deserialization failed. fixing test failure on a CLOSED TREE 2014-07-23 20:17:15 +02:00
Nicolas Silva
a1650d9899 Bug 1015718 - Keep the client-side D3D11 texture alive longer so that its destruction does not race with its deserialization. r=bas 2014-07-22 17:49:05 +02:00
Matt Woodrow
04dc8a1c71 Bug 1015718 - Deserialize the DXGI handle when constructing the TextureHost rather than when locking it. r=nical 2014-07-16 18:05:58 +12:00
Bas Schouten
ec0526fff6 Bug 1035227: Upload partial surfaces when an upload region is specified. r=nical 2014-07-09 16:21:11 +02:00