Commit Graph

5327 Commits

Author SHA1 Message Date
David Anderson
a107595018 Don't reuse input blocks with dead APZCs. (bug 1110038, r=kats)
--HG--
extra : rebase_source : 458816195b9e8e0394bfdf662b7173328015415c
2014-12-11 13:03:27 -08:00
Kartikaya Gupta
2fda0e7056 Bug 1013432 - Follow-up to fix build bustage when debug logging is enabled. r=me and DONTBUILD 2014-12-11 11:49:17 -05:00
Kartikaya Gupta
da5a1ed4e2 Bug 1109855 - Fix building of APZC instances via the tree manager for gtests. r=botond
In testing scenarios ensure that we always create a TestAsyncPanZoomController
so that we can unconditionally cast to it and use the extra helpers on that
class.
2014-12-11 10:39:19 -05:00
Nicolas Silva
69017d515d Bug 1108162 - Don't reuse a tile's front buffer if it just switched from non-component-alpha to compoenent-alpha. r=jrmuizel 2014-12-11 10:07:53 +01:00
Kartikaya Gupta
58cbd19de7 Bug 1013432 - Follow up to cset 89858cf28204 to remove accidentally added file. r=me
DONTBUILD because NPOTB
2014-12-10 21:15:44 -05:00
Mason Chang
c388ac3cf3 Bug 1080160 - Integrate Composite Times into Telemetry. r=benwa,avih 2014-12-10 18:15:48 -08:00
Benoit Girard
63d21a12fa Bug 1105834 - Part 3: Add lz4 support to layers.dump-texture. r=jrmuizel 2014-12-08 14:42:33 -05:00
Benoit Girard
d1169f5e7f Bug 1105834 - Part 2: Add layers.dump-texture feature. r=mstange 2014-11-28 17:41:47 -05:00
Ehsan Akhgari
278b49e363 Bug 1109699 - Fix more bad implicit constructors in gfx and image; r=jrmuizel 2014-12-10 17:48:11 -05:00
Kartikaya Gupta
6493f3f028 Bug 1013432 - Followup to fix rebase error. r=me 2014-12-10 17:10:24 -05:00
Milan Sreckovic
f60450e005 Bug 1099437 - Part 2: Clean up int vs uint usage. r=nical 2014-11-26 22:00:32 -05:00
Milan Sreckovic
12a0c94814 Bug 1099437 - Part 1: Protect against negative sizes and overflow. r=nical 2014-12-09 13:19:29 -05:00
Wes Kocher
28af05a0e8 Backed out 3 changesets (bug 1105834) for non-unified b2g bustage
Backed out changeset 7aca65122115 (bug 1105834)
Backed out changeset 47ba9f1d4762 (bug 1105834)
Backed out changeset f0226c3be051 (bug 1105834)
2014-12-09 17:15:42 -08:00
Benoit Girard
ea3fd279e8 Bug 1105834 - Part 3: Add lz4 support. r=jrmuizel
--HG--
extra : rebase_source : 10d4a17018bf62c96f89bd12000d8ee3b3d0b89f
2014-12-08 14:42:33 -05:00
Benoit Girard
962feca530 Bug 1105834 - Part 2: Add layers.dump-texture feature. r=mstange
--HG--
extra : rebase_source : 8c83823acbfda0c8ed812ac9c5137ba4cdbe054b
2014-11-28 17:41:47 -05:00
David Anderson
88a08ca9ca Move APZ handling of wheel events from nsWindow to RenderFrameParent. (bug 1013432 part 7, r=kats)
--HG--
extra : rebase_source : 6ee0db41a21d333deb511a6403f8178b7fe01bb9
2014-12-09 02:42:49 -08:00
David Anderson
fae21c73e9 Add scroll listeners to dispatch-to-content regions. (bug 1013432 part 5, r=tn)
--HG--
extra : rebase_source : babd42d9bdae722173821e800bc595fe662ee8f1
2014-12-09 02:38:23 -08:00
David Anderson
1c62410221 Add wheel events to the APZ input queue. (bug 1013432 part 4, r=kats)
--HG--
extra : rebase_source : beaf39e7ef1eb192e5edd14aa8e55d741f7ffad2
2014-12-09 02:36:13 -08:00
David Anderson
3061888891 Rename ContentReceivedTouch to ContentReceivedInputBlock. (bug 1013432 part 3, r=kats)
--HG--
extra : rebase_source : ee0d05d4774fac9fb34297953e90e61f1d979d5d
2014-12-09 02:35:12 -08:00
David Anderson
02c9453b1d Refactor InputQueue to hold more than touch events. (bug 1013432 part 2, r=kats)
--HG--
extra : rebase_source : cd3691a2bda6aaf315cf3b844e4fdd3aa8b30334
2014-12-09 02:34:27 -08:00
David Anderson
4a1c10d04b Factor out content-handling code from TouchBlockState. (bug 1013432 part 1, r=kats)
--HG--
extra : rebase_source : 12a4f865dda6777c146cfec24184ce45d5d54072
2014-12-09 02:33:29 -08:00
Wes Kocher
ab0d0ffd2b Backed out 3 changesets (bug 1105834) for non-unified bustage
Backed out changeset 33592fd41f1f (bug 1105834)
Backed out changeset c3e505887e9f (bug 1105834)
Backed out changeset 6aad17f431d1 (bug 1105834)
2014-12-08 17:15:46 -08:00
Benoit Girard
908b93e06d Bug 1105834 - Part 3: Add lz4 support. r=jrmuizel 2014-12-08 14:42:33 -05:00
Benoit Girard
6515991e7a Bug 1105834 - Part 2: Add layers.dump-texture feature. r=mstange 2014-11-28 17:41:47 -05:00
Sotaro Ikeda
0fb912bbcc Bug 1100110 - Fix ScaleMode handling of ImageLayer and HwcComposer2D r=mattwoodrow 2014-12-06 17:12:50 -08:00
Jonathan Watt
c3a1f810cf Bug 1083079 - Prevent the size of TiledDrawTarget from being zero due to its tiles having negative offsets. r=mattwoodrow 2014-12-05 03:00:24 -08:00
Bas Schouten
f3161fe1af Bug 1107299: Only block shared surface usage when that is broken. r=jrmuizel
Currently when the usage of surface sharing is broken on certain drivers, be block D3D11 entirely and fall back to Basic composition. There's no real benefit in this case from disabling D3D11 entirely, and we might as well just use it with software composition like we do when we don't have Direct2D, and in addition to that disable texture sharing for webGL, falling back to slow WebGL which again is no worse than the situation when using Basic or D3D9 composition.
2014-12-06 00:02:18 +00:00
Bas Schouten
047e9df31b Bug 1107297: Only recomposite the damaged rect with D3D11. r=jrmuizel
This patch makes us behave similarly to when we're using the BasicCompositor, essentially we will clip all drawing to the final display to the area that was labeled as invalid. When DXGI 1.2 is available we will then also report the damaged area to the Present call so that can then be used to minimize the amount of bits that actually need to be blitted to the screen. Since we're no longer recompositing the whole screen this means we should also only clear the damaged area of the window.
2014-12-06 00:02:18 +00:00
Kartikaya Gupta
5c63a162c6 Bug 1107606 - Allow smooth-scroll triggering on the same transaction as the creation of a new APZC. r=botond,kip 2014-12-05 00:04:36 -08:00
Jeff Muizelaar
53c25bd100 Bug 1049138. Add more crashing to PadDrawTargetOutFromRegion. r=BenWa
try: -b do -p all -u all -t none
Hopefully, this will give us a better idea of what the problem is.

--HG--
extra : rebase_source : 4f048b2501bb13edc4e257aa561bce87ea3137fd
2014-11-26 17:57:20 -05:00
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
Benoit Girard
a4449eed3b Bug 1097941 - Properly disable paint-will-resample on b2g. r=jmuizel 2014-11-28 18:42:20 -05:00
Kartikaya Gupta
9de1361176 Bug 1105836 - Automatically confirm the target APZC for an input block that arrives during fast-motion. r=botond 2014-11-28 12:25:41 -05:00
Kartikaya Gupta
8c296fec54 Bug 1105836 - Add more logging to the APZ code. r=botond 2014-11-28 12:25:41 -05:00
Andreas Pehrson
4cdc4e0f57 Bug 1089214 - Avoid using null query in D3D9SurfaceImage::EnsureSynchronized. r=nical 2014-11-27 17:56:00 -08:00
Ryan VanderMeulen
5df3040f12 Merge m-c to inbound. a=merge 2014-11-26 21:43:23 -05:00
Ryan VanderMeulen
694e866a21 Merge b2g-inbound to m-c. a=merge 2014-11-26 21:39:08 -05:00
Ryan VanderMeulen
dbff5227db Backed out changesets 258ac2909d6e and 55252aebf52d (bug 1099437) for bustage.
CLOSED TREE
2014-11-26 14:14:16 -05:00
Kartikaya Gupta
d181815ab6 Bug 1085404 - When interacting with a fast-moving APZC, don't send the events to content. r=botond 2014-11-26 12:41:06 -05:00
Kartikaya Gupta
a53eda68ee Bug 1105295 - Stop using scrollinfo layers when event regions are enabled. r=botond 2014-11-26 12:40:55 -05:00
Milan Sreckovic
1821a7da11 Bug 1099437 - Part 2: Clean up int vs uint usage. r=nical 2014-11-20 15:23:41 -05:00
Milan Sreckovic
840d1828f0 Bug 1099437 - Part 1: Protect against negative sizes and overflow. r=nical 2014-11-20 15:07:22 -05:00
Nicolas Silva
84fd8c9908 Bug 1036682 - Prevent LayerTransactionChild from sending messages after it has been destroyed. r=jrmuizel 2014-11-26 14:11:11 -08:00
Nicolas Silva
eccf760d11 Bug 1086670 - Add more gfxCriticalError logging in the D2D backend. r=jrmuizel 2014-11-26 21:05:01 +01:00
James Willcox
4e37a27351 Bug 1097116 - Followup for non-unified build breakage r=me CLOSED TREE
--HG--
extra : rebase_source : 697dc2f8d1661196ac8bb169fc4797b59af61fa3
extra : amend_source : 2aa014a0dec495466b854aebd5b19d1b5de4279e
2014-11-26 15:43:57 -06:00
James Willcox
4628c09c1a Bug 1097116 - Fix readback for EGLImageImage r=jgilbert
--HG--
extra : rebase_source : 038ddc25801541512a4e8231e4a6b586ed02c02b
2014-11-26 15:16:08 -06:00
James Willcox
8dd07570c6 Bug 1097116 - Copy the decoded SurfaceTexture into an EGLImage to allow accurate presentation r=jgilbert
--HG--
extra : rebase_source : d3165eb2d9534f82c84e3399e744e0c31b64c2dd
2014-11-26 15:16:07 -06:00
James Willcox
38709a9aed Bug 1097116 - Add fencing and better lifetime management for EGLImage Images r=jgilbert
--HG--
extra : rebase_source : 8da8c1e9e5ded06c8735ee5d30f8333f829064c5
2014-11-26 15:16:07 -06:00
Nicolas Silva
54233122ad Bug 1101636 - Cleanup the CompositorType enum. r=jrmuizel 2014-11-26 02:00:34 +01:00
Nicolas Silva
0fb063ef80 Bug 1102917 - Remove the TextureInfo member from client compositables. r=sotaro 2014-11-25 20:19:13 +01:00
Nicolas Silva
64d6d17133 Bug 1102895 - Remove unused TextureFlags. r=sotaro 2014-11-25 20:19:04 +01:00
Milan Sreckovic
620a5f2873 Bug 1104837: Add warnings and assertions when our assumptions about tile pools fail. r=nical 2014-11-25 14:54:29 -05:00
Sotaro Ikeda
56c5e8b0d4 Bug 1103213 - Do not compose when layer does not exist r=nical 2014-11-25 06:40:30 -08:00
Kartikaya Gupta
c5140e3d19 Bug 1104282 - Add missing include. r=botond 2014-11-25 08:45:57 -05:00
Kartikaya Gupta
82368a2395 Bug 1104266 - Add logging of nsDisplayLayerEventRegions fields in the display list dump. r=mattwoodrow 2014-11-25 08:45:20 -05:00
Bas Schouten
bf63a045c0 Bug 1103135: Fix CompositorBench code to build again. r=benwa 2014-11-24 19:44:51 +00:00
Kartikaya Gupta
e1fc5aa9d8 Bug 1056388 - Add assertions as per TODO. r=botond 2014-11-24 13:23:57 -05:00
Jonathan Watt
cf91ac7a84 Bug 1103623 - Port most remaining gfxContext::Fill() calls to Moz2D. r=mattwoodrow 2014-11-24 00:04:33 +00:00
Jonathan Watt
15d307f095 Bug 1103621 - Get rid of GraphicsOperator::OPERATOR_CLEAR. r=mattwoodrow 2014-11-20 10:40:04 +00:00
Kartikaya Gupta
98f1b0f730 Bug 918288 - Add logging for some of the SetTargetAPZ codepaths. r=botond 2014-11-21 21:36:26 -05:00
Kartikaya Gupta
08918bfa1a Bug 918288 - Modify the SetTargetAPZC API to take an array of targets for multiple touch points. r=botond 2014-11-21 21:36:25 -05:00
Wes Kocher
17b0884718 Backed out changeset 82e94c16732d (bug 1101974) 2014-11-21 10:52:24 -08:00
Wes Kocher
13494abc49 Backed out changeset 08df10804c35 (bug 1101974) 2014-11-21 10:52:17 -08:00
Mason Chang
4d2515e824 Bug 1101974. Part 2: Initialize vsync source during compositor creation. r=mstange 2014-11-21 09:16:19 -08:00
Mason Chang
bebd67962c Bug 1101974. Part 1. Move VsyncDispatcher to CompositorParent. r=roc 2014-11-21 09:16:19 -08:00
Vladimir Vukicevic
ae674a1a2f Bug 1036602 - add generic gfx/layers functionality for VR rendering; r=nical 2014-07-09 12:26:18 -07:00
James Willcox
e9da75e581 Back out bug 1097116 2014-11-21 09:47:03 -06:00
James Willcox
7d1813c44b Bug 1097116 - Fix readback for EGLImageImage r=jgilbert 2014-11-21 09:28:21 -06:00
James Willcox
76052a1209 Bug 1097116 - Copy the decoded SurfaceTexture into an EGLImage to allow accurate presentation r=jgilbert 2014-11-21 09:28:20 -06:00
James Willcox
45a7d7ad68 Bug 1097116 - Add fencing and better lifetime management for EGLImage Images r=jgilbert 2014-11-21 09:28:19 -06:00
Boris Chiou
4b888d9c25 Bug 1096139 - Create websocket dynamically after we enable Layerscope. r=dglastonbury
We have to create the websocket if it doesn't exist after enabling
Layerscope. Therefore, we don't have to reboot the device anymore.

1. Remove the Init and DeInit in CreateCompositor and DestroyCompositor
   to prevent some unwanted deInits on the browser. (Our browser often
   calls DestroyCompositor)
2. Initize websocket only when we need it.
2014-11-20 02:00:00 +01:00
Milan Sreckovic
c64009526e Bug 1097655 - Guard against invalid shadow manager. r=sotaro 2014-11-19 15:22:03 -05:00
Wes Kocher
898d3ed7b8 Merge fx-team to m-c a=merge 2014-11-20 17:55:52 -08:00
Benoit Girard
0d3235245b Bug 1098495 - Part 2: Run the layer tree invalidation code on windows. r=mstange ON A CLOSED TREE
--HG--
extra : rebase_source : 1e98356dabedb557ad786dbd49679206e24cf09e
2014-11-20 15:10:18 -05:00
Benoit Girard
7db266a8bc Bug 1098495 - Retain a container's intermediate surface's content. r=mattwoodrow
--HG--
extra : rebase_source : cdb691c1127445eeeb2e4fda5a0ef4f2223703fc
2014-11-18 17:33:36 -05:00
Nicolas Silva
9cc5370293 Bug 1101552 - Remove the double-buffered ImageClient. r=sotaro 2014-11-20 19:49:51 +01:00
Nicolas Silva
096edd5eaf Bug 1086670 - Add some gfxCriticalError logs around DrawTarget creation. r=Bas 2014-11-20 15:48:07 +01:00
Carsten "Tomcat" Book
89e7e647c2 Merge mozilla-central to fx-team 2014-11-20 12:22:05 +01:00
David Anderson
b2e46c1fab Add inactive subframes to the dispatch-to-content region. (bug 1082594, r=tn,kats) 2014-11-19 20:24:15 -08:00
Kearwood (Kip) Gilbert
118a58666e Bug 1086723 - Enable asynchronous update of mask layer transforms. r=kats
- Layer::ComputeEffectiveTransformForMaskLayer now computes a delta transform
  for the mask layer's effective transform using the masked layer's shadow
  transform and base transform.  This delta is applied to the effective
  transform of the mask layer, with the same effect as if it were also
  transformed by the APZ.
2014-11-14 15:33:00 +01:00
Benoit Girard
345e116691 Bug 1087530 - Part 2: Set OGL Scissor during mClearOnBind. r=jmuizel 2014-11-19 15:30:25 -05:00
Benoit Girard
a52fc33128 Bug 1101650 - Fix mClearOnBind logic. r=jmuizel 2014-11-19 15:29:23 -05:00
Kartikaya Gupta
53936f3254 Bug 1100140 - When a scrollable layer is marked as fixed-position, don't treat it as fixed relative to itself. r=botond 2014-11-19 13:41:48 -05:00
Milan Sreckovic
1ba7431253 Bug 1095925: Propagate the error up the chain. r=jmuizelaar 2014-11-14 16:11:02 -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
Markus Stange
fee32b29b7 Bug 1097776 - Don't leak the SkBitmapDevice. r=jrmuizel 2014-11-18 17:22:01 -05:00
Markus Stange
4bfc882827 Bug 1097776 - Use Skia for unaccelerated rendering of 3D transforms. r=jrmuizel 2014-11-18 17:21:45 -05:00
Mason Chang
e356eb5ca2 Bug 552020. Part 2. Enable Vsync Profiler Markers across platforms. r=benwa 2014-11-18 13:28:42 -08:00
Wes Kocher
1270a44f4d Backed out changeset 0092a5e1467d (bug 1097776) for reftest failures and leaks 2014-11-18 11:00:08 -08:00
Markus Stange
0882643bae Bug 1097776 - Use Skia for unaccelerated rendering of 3D transforms. r=jrmuizel 2014-11-18 11:36:17 -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
f7a15a92d7 Bug 1073036. Fix an assertion string that I forgot about.
--HG--
extra : rebase_source : 9c52d35673e7a28d2c982a070e28b18792cc1a98
2014-11-18 10:33:36 -05:00
Jeff Muizelaar
4b0029fdf7 Bug 1073036. layers: Track program state more carefully to avoid setting unnecessarily. r=nical
This introduces some infrastructure to start tracking the program state more carefully. Currently
it only tracks the program because UseProgram was showing up the most in profiles, but more
state could also be added as needed.

--HG--
extra : rebase_source : 289ab867ef63032f7604a6cbe6d0230fd0a9411a
2014-11-10 14:34:06 -05:00
David Anderson
ec1f0caf28 Add APZ handling for desktop scroll wheel events. (bug 1086162 part 1, r=kats) 2014-11-17 20:56:18 -08:00
Botond Ballo
2bc3fddde6 Bug 1093298 - Ignore calls to AsyncPanZoomAnimation::Sample() with a negative time duration. r=kats 2014-11-17 13:18:16 -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
Nicolas Silva
df35228518 Bug 1098000 - Track the number of compositable references to TextureHost and only unbind gralloc textures after the last ref goes away. r=sotaro 2014-11-17 11:06:25 +01:00
David Anderson
bebf0f726f Don't overscroll during a fling unless overscrolling is enabled. (bug 1099442, r=botond) 2014-11-14 16:19:00 -08: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