Граф коммитов

9627 Коммитов

Автор SHA1 Сообщение Дата
sotaro e155c862e7 Bug 1363958 - Fix WebRenderLayerManager::FlushRendering() r=nical 2017-06-02 08:07:59 +09:00
Kartikaya Gupta f7afb5a21c Merge m-c to graphics, a=merge
MozReview-Commit-ID: COZj8Itgjcz
2017-06-01 09:56:23 -04:00
Kartikaya Gupta 0b60039322 Bug 1368551 - Don't send transforms to WR in push_stacking_context if they are identity. r=pchang
If we set a transform in push_stacking_context, it changes the internal
WebRender behaviour to make that stacking context a reference frame, and
things inside it are positioned differently. This is true even if the
transform is an identity transform.

In most cases we are hitting this and sending an identity transform
through, when in fact we want to be sending a None value to WebRender so
that it doesn't create reference frames. This is a partial fix, a proper
fix will be done in bug 1345577 by separating the CSS transform from the
other transforms that FrameLayerBuilder invents.

MozReview-Commit-ID: ElSs3hFMD2D
2017-06-01 09:17:17 -04:00
Kartikaya Gupta c054f05ef3 Bug 1368551 - Remove unneccessary overload of PushStackingContext. r=pchang
This overload is only called in one place, so we can just inline it. It
makes the API a little simpler.

MozReview-Commit-ID: H55IUduUSiJ
2017-06-01 09:17:16 -04:00
Kartikaya Gupta cab614e181 Bug 1367734 - Update webrender to cset a54cc729259588dd1ff52c86d0c62cb2a1767137. r=jrmuizel,jerry
In addition to updating webrender and webrender_traits, this patch:
- bumps the euclid dependency in webrender_bindings to match webrender
- updates the Cargo.lock files and re-vendors third-party rust packages
- updates the push_yuv_image callers due to an API change in WR cset a4b9e25.
2017-06-01 08:57:10 -04:00
sotaro df7247c629 Bug 1368593 - Do not set background color if WebRenderBridgeParent is not root r=jrmuizel 2017-06-01 20:42:55 +09:00
Andrew Osmond bdcff7a50b Bug 1368730 - TextureChild::ActorDestroy should indicate IPC is now impossible, not TextureChild::ReleaseIPDLReference. r=nical 2017-05-31 10:18:13 -04:00
Botond Ballo 0a4092443d Bug 1368315 - Avoid calling SetContentResponse() on an already-consumed drag block. r=kats
MozReview-Commit-ID: LnObFmoB3Bi

--HG--
extra : rebase_source : f7db4d059ac94789da8837c5d7057c0114dc8e22
2017-05-29 11:21:15 -04:00
vincentliu 23c04fef95 Bug 1362366 - Set DataTextureSourceD3D11 to nullptr once devce change was detected. r=dvander 2017-05-31 17:48:12 +08:00
Lee Salzman e75b1b8c59 Bug 1366446 - Ensure layers TextureClient always lives as long as the SourceSurface using it. r=jrmuizel
MozReview-Commit-ID: HU3TBQQgotE
2017-05-28 13:30:32 -04:00
sotaro 9825a21a17 Bug 1363280 - Fix Updating sImageBridges handling r=dvander,nical 2017-05-31 09:11:53 +09:00
sotaro 1885be3a3f Bug 1366915 part 2 - Make CompositorBridgeChild allocate pipeline id for async image pipeline r=nical 2017-05-30 09:59:44 +09:00
sotaro 3e55c4713f Bug 1366915 part 1 - Remove pipeline id allocation with IPC MozPromise r=nical 2017-05-30 09:59:29 +09:00
Kartikaya Gupta bf29ee0963 Bug 1368487 - Fix content rect passed to scroll layers to be relative to the right thing. r=jrmuizel
MozReview-Commit-ID: 1mbVLqp9o2R
2017-05-29 11:40:58 -04:00
Kartikaya Gupta 2c6ff0ad8b Bug 1368487 - Add some default-disabled logging functionality to WebRenderAPI.cpp r=jrmuizel
MozReview-Commit-ID: DAqeAEyjCTm
2017-05-29 11:40:49 -04:00
Kartikaya Gupta 4bee409ce4 Bug 1367911 - Follow-up to remove invalid assertion. r=me
MozReview-Commit-ID: IdL5yLgserF
2017-05-29 09:57:42 -04:00
Kartikaya Gupta b7ee577f62 Merge m-c to graphics, a=merge
MozReview-Commit-ID: 8IWAJNO52ry
2017-05-29 08:28:04 -04:00
Kartikaya Gupta c77f08c8ad Bug 1367911 - Extract a GetLayersId() helper. r=dvander
We're calling this often enough that it seems good to extract a named
helper method.

MozReview-Commit-ID: gIwdyfafOq
2017-05-28 07:51:53 -04:00
Kartikaya Gupta e4b2bf8de2 Bug 1367911 - Update APZCCallbackHelper to support WebRender. r=dvander
This allows APZCCallbackHelper to send the SetConfirmedTargetAPZC
message over PWebRenderBridge if webrender is enabled, rather than
assuming the layer manager is a ClientLayerManager and then crashing.

MozReview-Commit-ID: 57o9CaCcbTi
2017-05-28 07:51:51 -04:00
Kartikaya Gupta 0f05ab2902 Bug 1367911 - Refactor the SetConfirmedTargetAPZC function to take a layers id. r=dvander
This makes it simpler to reuse this API from WebRenderBridgeParent,
since we can provide a layers id but not a LayerTransactionParent.

MozReview-Commit-ID: DEIGMk9tJEB
2017-05-28 07:51:48 -04:00
Kartikaya Gupta d5c99e4ebb Bug 1367837 - Implement some APZ test util APIs for webrender. r=botond,dvander
This implements some methods exposed on DOMWindowUtils and used by
reftests, for the WebRender codepath. The implementation is very similar
to the implementation in LayerTransactionParent.

MozReview-Commit-ID: HP8OxzIzS7P
2017-05-28 07:48:36 -04:00
Kartikaya Gupta f47534e48a Bug 1367837 - Expose a testing helper method to get an APZC instance from the layers id and scroll id. r=botond
MozReview-Commit-ID: HyEMamx7nDk
2017-05-28 07:48:33 -04:00
Kartikaya Gupta 71133b7ca0 Bug 1367837 - Have the CompositorBridgeParent::FlushApzRepaints function take a layers id instead of a layer tree. r=dvander
This is helpful for reusing the FlushApzRepaints from
WebRenderBridgeParent, since it no longer assumes there's a layers
transaction object.

MozReview-Commit-ID: GVqDDEeZaN3
2017-05-28 07:48:29 -04:00
Kartikaya Gupta c3d1217b06 Merge m-c to graphics, a=merge
MozReview-Commit-ID: 91TVUCwwNt4
2017-05-26 08:28:53 -04:00
Kartikaya Gupta 29bcb40e01 Bug 1367870 - Add stringification helper for WrRect. r=jrmuizel
MozReview-Commit-ID: FMw6tPI2LOJ
2017-05-25 17:49:30 -04:00
Kartikaya Gupta cbaaff5376 Bug 1367870 - Remove unused logging function bodies. r=jrmuizel
Both nsIntPoint and IntRect are specializations of template classes (BasePoint
and BaseRect) that are already covered by the corresponding template methods
in LayersLogging.h. Therefore these methods are not needed (and in fact are not
listed separately in LayersLogging.h).

MozReview-Commit-ID: BIZAOFfWCfI
2017-05-25 17:49:23 -04:00
Kartikaya Gupta 07aa8387a0 Merge m-c to graphics, a=merge
MozReview-Commit-ID: 3cEYFBtGvTZ
2017-05-25 08:06:56 -04:00
Kartikaya Gupta d29002d64b Merge m-c to graphics, a=merge
MozReview-Commit-ID: 2pUMxaNAKCC
2017-05-24 08:14:30 -04:00
sotaro 103c378c7f Bug 1366931 - Fix pipeline id handling of WebRenderBridgeParent::RecvDeleteCompositorAnimations() r=kats 2017-05-24 09:26:29 +09:00
Dennis Ek 907fde9487 Bug 1111333 - Enable double-tap-drag to zoom. r=kats
MozReview-Commit-ID: KpwVNZZdLPd
2017-05-23 19:53:06 +02:00
ohn0 e64bada746 Bug 1367062 - Change std::map to std::unordered_map in APZCTreeManager r=botond
MozReview-Commit-ID: yHXUFw2fx6
***
Bug 1367062 - Change std::map to std::unordered_map in APZCTreeManager
changed gfx/layers/FrameMetrics.h by adding a ScrollableLayerGuidHash class that will be used as the hashing function for std::unordered_maps which use ScrollableLayerGuid as keys.
changed gfx/layers/apz/src/APZCTreeManager.cpp by changing mApzcMap to a std::unordered_map.
changed gfx/layers/apz/src/APZCTreeManager.h by changing mZoomConstraints to a std::unordered_map.

MozReview-Commit-ID: JmoQzh1MvKK

--HG--
extra : rebase_source : cb7bd9419085f83873c9fd019c4a379fae0ee278
2017-05-26 19:41:13 -04:00
Shing Lyu 5d8a5a598c Bug 1361645 - Change reftest condition stylo to styloVsGecko r=dbaron
MozReview-Commit-ID: 3ekoU1zg8xA

--HG--
extra : rebase_source : f62c84516f5ac0d4b4d0c876514b72fa786ec542
2017-05-25 11:26:12 +08:00
Botond Ballo eed69a71e3 Bug 1352863 - Implement support for slider.snapMultiplier during APZ dragging. r=kats
MozReview-Commit-ID: EbmjdNLVsq7

--HG--
extra : rebase_source : 47e5b69976226f2e94545c19d4cce75f1b0b97e1
2017-05-19 20:15:44 -04:00
Botond Ballo 493fce15fc Bug 1352863 - Rename a couple of local variables for clarity. r=kats
MozReview-Commit-ID: 13dMmtyXL0d

--HG--
extra : rebase_source : 47ecaffe037579a590e00727f36b1caf2e00aaa6
2017-05-19 18:43:48 -04:00
Botond Ballo 665ebcbb87 Bug 1352863 - Record the position of the scrollbar thumb at the start of a scrollbar drag. r=kats
MozReview-Commit-ID: JqEi1zJZOJa

--HG--
extra : rebase_source : 8e7c2255c1cf2661489cc7fee0013bb8297c8d06
2017-05-19 20:14:14 -04:00
Botond Ballo 2d97e2ab3c Bug 1352863 - Propagate the visible region from Layer to HitTestingTreeNode. r=kats
The propagation happens via LayerMetricsWrapper or WebRenderScrollDataWrapper.

MozReview-Commit-ID: GBZUnNn3zjN

--HG--
extra : rebase_source : 4c63269480154a95d5faedf1b4972f7d3373cb5a
2017-05-24 15:47:14 -04:00
Botond Ballo 2d90298d62 Bug 1352863 - Add a GetPerpendicularDirection() function to DirectionUtils.h. r=kats
MozReview-Commit-ID: KATLVKvXCwI

--HG--
extra : rebase_source : 296db90f4a6376059961232c63ad2d27197fab51
2017-05-19 20:00:23 -04:00
Botond Ballo ec17a356c2 Bug 1352863 - Move the GetAxis*() functions from AsyncPanZoomController.cpp into a new DirectionUtils.h header. r=kats
Also take advantage of the new CoordOf metafunction to combine some of their overloads.

MozReview-Commit-ID: ETybNn7b5ic

--HG--
extra : rebase_source : 5798103462e454dc61abb7c8a26b997f02c8be36
2017-05-24 15:47:01 -04:00
Botond Ballo 9ca636625a Bug 1366365 - Re-clamp APZ's scroll offset if the scrollable rect changes. r=kats
Even if we don't accept the scroll offset from content, we always accept the
new scrollable rect, so to avoid an out-of-bounds scroll offset, we need to
re-clamp it.

MozReview-Commit-ID: 5JbCUYuDPR6

--HG--
extra : rebase_source : 72638713f97b5ab42633580f54b5a4c9dad1a630
2017-05-19 17:30:24 -04:00
Botond Ballo 93e7b8f2fd Bug 1366365 - Rename APZCTreeManager::FindScrollNode() to FindScrollThumbNode() for clarity. r=kats
MozReview-Commit-ID: FnseNzwnx3g

--HG--
extra : rebase_source : 8bbf626d8797f1c029623dde461919a15a2d5ebc
2017-05-19 15:54:49 -04:00
Boris Chiou 1b7cc40933 Bug 1361663 - Part 1: Use double instead of float for the progress of interpolation. r=birtles
We get the progress as |double|, and then pass it to a function by a |float|
type, and then finally cast it back to |double| for the interpolation.
We should avoid casting it back and forth, so change the function argument to
use |double| type for the progress.

MozReview-Commit-ID: 7QzfVBC7hSt

--HG--
extra : rebase_source : 62467bf0a734b650f524af656658cdfdabca2a5c
2017-05-22 13:35:15 +08:00
Kartikaya Gupta ede9469c8a Bug 1364525 - Handle null-pointer dereference condition. r=botond
This is a pre-existing bug that I ran into while exercising the async scrollbar
code on OS X. The LayerTreeState might not be available, so we detect and skip
those layers.

MozReview-Commit-ID: GiHaq7gQLxq
2017-05-23 10:50:42 -04:00
Kartikaya Gupta 7691215e03 Bug 1364525 - Produce scrollbar thumb transforms. r=botond
This updates PushStateToWR to actually produce the scrollbar thumb transforms
and append them into the provided transform array.

MozReview-Commit-ID: 14xlpRQXhhq
2017-05-23 10:50:42 -04:00
Kartikaya Gupta 96fa13cb2c Bug 1364525 - Update APIs to allow APZ to produce scrollbar transforms. r=pchang,botond
This allows the APZCTreeManager::PushStateToWR function to also produce a set
of transforms to be applied to scrollbar thumbs. The PushStateToWR function
will be updated in the next patch to actually produce the transforms. This patch
also rearranges code in WebRenderBridgeParent::CompositeToTarget so that either
OMTA or APZ can produce animation updates.

MozReview-Commit-ID: 1ghvVG32TC5
2017-05-23 10:50:42 -04:00
Kartikaya Gupta 8902dc4885 Bug 1364525 - Send the animation id for scrollbar thumbs over to the parent in the scroll data. r=botond
This propagates the animation id for a scroll thumb's stacking context over to
the APZ code, and stores it in the HitTestingTreeNode.

MozReview-Commit-ID: 5O13Xko2Bph
2017-05-23 10:50:41 -04:00
Kartikaya Gupta cd79f50c8d Bug 1364525 - Ensure all scroll thumbs have an animations id. r=pchang
In order to have the scrollbar thumbs reflect the async scroll position, we're
going to re-use the API for OMTA. That is, we set an animation id on the
stacking context for the scroll thumb, and we'll update the transform on the
stacking context at composite time based on the async scroll position. For this
to work we need to ensure that the scroll thumb does in fact have an
animation id set on it.

MozReview-Commit-ID: 6TvRemxRUrR
2017-05-23 10:50:41 -04:00
Wes Kocher 8b07ba2a07 Merge m-c to inbound a=merge
a=release IGNORE BAD COMMIT MESSAGES
2017-05-19 15:18:51 -07:00
Wes Kocher 15edcfd962 Merge inbound to central, a=merge
MozReview-Commit-ID: EI67EKp8ykS
2017-05-19 15:14:19 -07:00
David Anderson c248fd8d3b Generate shader blobs as part of the build process. (bug 1365859 part 2, r=mshal)
--HG--
extra : rebase_source : 2f1d7762d1c12cd223fa0aab1b964c18ac92e090
2017-05-19 12:32:14 -07:00
David Anderson 8894231cd7 Rewrite genshaders.sh as a Python script that uses a manifest. (bug 1365859 part 1, r=bas)
--HG--
extra : rebase_source : a5b60ab1c5531c7e911fc6c6e522d4e7b8cc2497
2017-05-19 12:32:13 -07:00