Commit Graph
255 Commits
Author SHA1 Message Date
Kartikaya Gupta c62702e212 Bug 1403176 - Add support for out-of-band APZ focus state propagation. r=mstange
One of the pieces of information that can be sent to the compositor is
the APZ focus state info, which is used for keyboard APZ. This patch
adds an API that allows updating this outside of a regular WR
"transaction" (i.e. a SetDisplayList call) so that we can use it in an
empty transaction (in the next patch).

MozReview-Commit-ID: L5TCbI9FtGV
2017-10-02 16:49:55 -04:00
Nicolas Silva b894fa2224 Bug 1403857 - Clear with transparent black to benefit from fast glClear optimization. r=kvark 2017-09-28 16:30:58 +02:00
Nicolas Silva bfb84db23c Bug 1383786 - Make it possible to update TextureHost image keys. r=sotaro 2017-09-26 15:30:51 +02:00
Lee Salzman 424af0fb64 Bug 1397458 - part 4 - supply font variations to WebRender AddFontInstance r=kats
MozReview-Commit-ID: 6JSMMVK0GZm
2017-09-20 23:18:23 -04:00
Nicolas Silva 9e41946ae8 Bug 1400532 - Separate small and large shmem allocations in IpcResourceUpdateQueue. r=jrmuizel 2017-09-20 13:39:19 +02:00
Nicolas Silva aa99b34ffc Bug 1393031 - Remove OpAddExternalImage from WebRenderParentCommands. r=sotaro 2017-09-20 13:36:44 +02:00
Nicolas Silva 137f6a060e Bug 1393031 - Begin moving OpAddExternalImage to IpcResourceUpdateQueue and recycle image keys in WebRenderImageLayer. r=jrmuizel 2017-09-20 10:56:09 +02:00
Sebastian Hengst ce9140234f Backed out changeset 67ca40453027 (bug 1393031) for failing e.g. reftest layout/reftests/image/image-srcset-basic-selection-2x-ref.html on QuantumRender. r=backout 2017-09-14 23:18:49 +02:00
Sebastian Hengst b1f5f63c7c Backed out changeset 980729ab6e94 (bug 1393031) 2017-09-14 23:17:59 +02:00
Nicolas Silva 75bb248569 Bug 1393031 - Remove OpAddExternalImage from WebRenderParentCommands. r=sotaro 2017-09-14 20:21:50 +02:00
Nicolas Silva 15eefdc054 Bug 1393031 - Begin moving OpAddExternalImage to IpcResourceUpdateQueue and recycle image keys in WebRenderImageLayer. r=jrmuizel 2017-09-14 20:21:36 +02:00
Nicolas Silva 7100d343f6 Bug 1393031 - Use shared memory to pass resource update data. r=jrmuizel 2017-09-14 18:48:55 +02:00
Nicolas Silva aac8f5a171 Bug 1393031 - Remove WebRenderBridgeParent::DeleteOldImages. r=sotaro 2017-09-14 18:48:44 +02:00
Nicolas Silva a28aa4e39e Bug 1393031 - Apply external image commands in webrender transactions. r=sotaro 2017-09-04 13:59:47 +02:00
Nicolas Silva 14647f1316 Bug 1393031 - Separate WebRenderAPI and ResourceUpdateQueue. r=sotaro 2017-09-04 13:59:42 +02:00
Nicolas Silva a68790f976 Bug 1393031 - Use the ResourceUpdateQueue API on the content side. r=jrmuizel 2017-09-04 13:59:36 +02:00
Nicolas Silva 947168818a Bug 1393031 - Expose webrender transactions at the ipc boundary. r=jrmuizel, r=kanru 2017-09-04 13:59:26 +02:00
Nicolas Silva a0ab15a283 Bug 1393031 - Stop tracking active resource keys on the parent side. r=sotaro 2017-09-04 13:59:21 +02:00
Nicolas Silva 674768a93d Bug 1393031 - Expose webrender resource updates in the C++ wrapper. r=sotaro 2017-09-04 13:59:12 +02:00
Lee Salzman e54dd8d30e Bug 1393055 - map ScaledFonts to WebRender FontInstanceKeys. r=jrmuizel
MozReview-Commit-ID: AadEI5CnTZ1
2017-08-30 13:45:11 -04:00
sotaro 863dd5182c Bug 1394337 - Fix uninitialized mPipelineId by WebRenderBridgeParent::CreateDestroyed() r=kats
WebRenderBridgeParent holds uninitialized mPipelineId when it was created by WebRenderBridgeParent::CreateDestroyed(). Then when CrossProcessCompositorBridgeParent::DeallocPWebRenderBridgeParent is called for the WebRenderBridgeParent, it will call EraseLayerState with some garbage uninitialized value, and so it will erase some random layer state entry.
2017-08-29 22:41:53 +09:00
Sebastian Hengst 8b761993a9 Backed out changeset 326d1e6cf7b1 (bug 1393031) for bustage at gfx/layers/opengl/MacIOSurfaceTextureHostOGL.cpp:178: no member named 'AddExternalImage' in 'mozilla::wr::WebRenderAPI' on OS X and also bustage on Windows. r=backout on a CLOSED TREE 2017-08-25 12:42:01 +02:00
Nicolas Silva caf800b93a Bug 1393031 - Expose WebRender's ResourceUpdates to C++. r=sotaro 2017-08-25 11:58:00 +02:00
Nicolas Silva f6e2ccd98d Bug 1390840 - Add prefs to display the debugging view of webrender's texture cache and intermediate targets. r=jrmuizel 2017-08-23 12:00:37 +02:00
sotaro 26c7e27d21 Bug 1390731 - Add pointer check to GetRootCompositorBridgeParent() r=kats 2017-08-23 13:44:22 +09:00
Sebastian Hengst af8a5d3748 Backed out changeset b9c53ad8893b (bug 1390840) 2017-08-21 18:38:22 +02:00
Nicolas Silva 677415026e Bug 1390840 - Add prefs to display the debugging view of webrender's texture cache and intermediate targets. r=jrmuizel 2017-08-21 18:22:56 +02:00
sotaro 99bba16ffb Bug 1390413 - Remove unnecessary webrender keys deletion r=kats 2017-08-16 10:09:35 +09:00
sotaro 80a5f54595 Bug 1387922 - Add log of start or fwd Transaction to on screen timing r=nical 2017-08-11 10:57:21 +09:00
sotaro 67d99a142e Bug 1385003 - Use a different WebRenderAPI instance for each WebRenderBridgeParent. r=kats
Previously, the WebRenderBridgeParent for each content layer tree would use the
same WebRenderAPI instance as the top-level WebRenderBridgeParent for that window.
However, in order to make the namespacing changes work we now need to use a
separate WebRenderAPI instance for each WebRenderBridgeParent. The content
WebRenderAPIs are cloned from the parent one, so that they all share the same
backend, but can allocate resource IDs in distinct namespaces.

MozReview-Commit-ID: 7VTFL8F09n7
2017-08-09 08:46:25 -04:00
Kartikaya Gupta a2f52c8a8f Bug 1385003 - Drop the hacky gecko IdNamespace allocator and use the IdNamespace from WR to avoid mismatches. r=sotaro
MozReview-Commit-ID: 410h1ZkWBGL
2017-07-31 14:21:18 -04:00
JerryShih be0bede63b Bug 1357299 - P12: Add SyncObject in RendererOGL. v2. r=nical
With DXVA2 hardware-video-decoding, the RendererOGL should have a
synchronization mechanism to prevent the flickering of video texture.
Create a SyncObject in RendererOGL to do the texture synchronization.

The WebRenderAPI also exposes the RendererOGL's SyncHandle to
WebRenderBridgeParent. Then, the WebRenderBridgeParent could pass this SyncHandle
to the video decoding module for texture synchronization.

MozReview-Commit-ID: toQ2mO5fzG
2017-08-07 18:15:25 +08:00
sotaro eb2d5e90e3 Bug 1354411 - Rebuild CompositorSessions if WebRender is disabled r=kats
When WebRender creation is failed, WebRender is disabled in gecko. There is a case that WebRenderBridgeParents exist when WebRender is disabled. To handle this, gecko needs to rebuild all CompositorSessions.

There is also a problem related to gfxVars::UseWebRender on compositor thread. If e10s is enabled, but no-gpu process(default on linux and mac), gfxVars::UseWebRender change is soon notified by compositor thread tasks. If WebRender creation failure happens at 2nd WebRender creation, several WebRenderBridgeParents for 1st WebRender could exist. IPC messages from WebRenderLayerManager are normally async, then there is a chance that the WebRenderBridgeParents receive the messages after the gfxVars::UseWebRender change. Further the gfxVars::UseWebRender change in content process could be delayed than WebRenderBridgeParents, then content process does not have a way to stop sending PWebRenderBridge IPC until the change of gfxVars::UseWebRender is received. WebRenderBridgeParent related tasks handle the message, but some tasks are done based on gfxVars::UseWebRender. At this time, gfxVars::UseWebRender returned false on compositor thread, then it cause unexpected result for WebRenderBridgeParent and WebRender. To addres this inconsistent situation, WebRenderBridgeParent related tasks on compositor thread stop to use gfxVars::UseWebRender.
2017-08-04 14:36:41 +09:00
Morris Tseng 0bfc5ad8cd Bug 1379920 - Add aAsync param to AddPipelineIdForAsyncCompositable and rename it to AddPipelineIdForCompositable. r=sotaro
When empty transaction in layers free mode, we don't rebuild whole
display list. But the canvas content will be updated and send the
content to parent by CanvasClient. We need some mechanism just like
async video which can update the content without rebuild the dl. But
CanvasClient doesn't use ImageBridge at all. So I slightly modify
AddPipelineIdForAsyncCompositable to let it support the Compostiable
either store in ImageBridge or WebRenderBridgeParent.

MozReview-Commit-ID: 3mKv13Pgc2k
2017-08-03 13:55:13 +08:00
Kartikaya Gupta 8ffac3e258 Bug 1386020 - Use wr::IdNamespace instead of uint32_t for the WR namespace. r=sotaro
MozReview-Commit-ID: JbQNgNQHobO
2017-07-31 16:31:10 -04:00
Botond Ballo fa6557cf63 Bug 1105109 - Fix unified compilation errors. r=kats
MozReview-Commit-ID: DB3JNwlE3Dw
2017-07-28 20:17:19 -04:00
sotaro 05ade149eb Bug 1384869 - Fix ImageCompositeNotification when WebRender is enabled r=nical 2017-07-31 13:00:06 +09:00
Wes Kocher 329a1baf34 Merge inbound to central, a=merge
MozReview-Commit-ID: JNxfwQh0cac
2017-07-28 17:40:43 -07:00
Kartikaya Gupta c5249284dd Bug 1372880 - Followup to fix typo in function name. r=me
MozReview-Commit-ID: J2D0Cb6DRNJ
2017-07-28 12:57:13 -04:00
Nicolas Silva e0740925a5 Bug 1383786 - Fix unified build issue. r=sotaro 2017-07-28 14:08:05 +02:00
Nicolas Silva cf099dbdad Bug 1383786 - Rename WebRenderCompositableHolder into AsyncImagePipelineManager. r=sotaro 2017-07-25 10:54:36 +02:00
sotaro 7b7899d5ea Bug 1377619 - Add EndTransaction to on screen timing log for WebRender r=nical 2017-07-28 08:05:56 +09:00
Carsten "Tomcat" Book 1aab4e605f Merge mozilla-central to autoland 2017-07-28 15:27:47 +02:00
Kartikaya Gupta 1452c0c940 Bug 1383041 - Update bindings for IdNamespace changes in WR cset 6a2662c. r=kvark
MozReview-Commit-ID: 32dsMgqoOvf
2017-07-28 08:18:30 -04:00
Kartikaya Gupta cda2f566d0 Bug 1385070 - Remove the WebRenderOMTAEnabled pref. r=ethlin
MozReview-Commit-ID: CWdrpzorNxq
2017-07-27 16:11:17 -04:00
sotaro 8f4becdd98 Bug 1382948 - Fix WebRenderBridgeParent::FlushTransactionIdsForEpoch() r=nical 2017-07-24 21:20:22 +09:00
sotaro 7af0088619 Bug 1382132 - Improving throttling GenerateFrame() r=nical 2017-07-24 09:22:20 +09:00
peter chang 0048b04238 Bug 1363830 - use previous frame time when advancing animations, r=kats
MozReview-Commit-ID: CqKOguZXnF9
2017-06-29 13:44:00 -07:00
sotaro 4af79b3580 Bug 1382091 - Delete ImageKeys with ClearCachedResources r=nical 2017-07-20 10:30:31 +09:00
Ryan Hunt 9e70a3bbca Bug 1382128 part 8 - Remove Wr prefix from some type aliases. r=kats
MozReview-Commit-ID: 5h7QobhcYc1
2017-07-19 03:28:58 -04:00