Commit Graph

383 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
4a50bc99ae Backed out changeset 71fe4233208a (bug 1076163) 2014-11-13 11:47:35 +01:00
Carsten "Tomcat" Book
52d5b03991 Backed out changeset a96930f1e26b (bug 1055741) 2014-11-13 11:47:31 +01:00
Botond Ballo
031c8b1c39 Bug 1055741 - Unify the 'local Screen' and 'ParentLayer' coordinate systems. r=kats 2014-11-10 14:35:11 -05:00
Botond Ballo
4bdb5115eb Bug 1076163 - Clean up the resolution-related fields and methods in FrameMetrics. r=kats 2014-10-20 17:12:35 -04:00
Kartikaya Gupta
273c06a82d Bug 1091296 - When applying the APZ transform on a layer, make sure not to clobber any existing OMTA transform. r=mattwoodrow 2014-11-11 10:54:02 -05:00
Kartikaya Gupta
f73c12544e Bug 1091296 - Remove the redundant code for clearing async transforms per frame of composition. r=mattwoodrow
We already reset the shadow transform to the layer transform in
SetShadowProperties() before compositing every frame, so this is redundant.
2014-11-11 10:53:57 -05:00
Kartikaya Gupta
0e53c43b1a Bug 1091296 - Refactor the pre- and post-scale cancellation code into a helper method. r=mattwoodrow 2014-11-11 10:53:44 -05:00
Ehsan Akhgari
22d38b6803 Bug 1088838 - Don't export CompositorChild.h, CompositorParent.h and ShadowLayersManager.h twice; r=BenWa 2014-10-27 08:57:36 -04:00
Kartikaya Gupta
f6083d562d Bug 1013612 - Remove APZ-internal headers from being exported to non-layers code. r=botond 2014-10-16 09:23:52 -04:00
Jonathan Watt
44455cc40b Bug 1082483, part 2 - Convert Mozilla code to use the new Matrix4x4::PreTranslate/PreScale method names. r=Bas 2014-10-16 10:51:12 +01:00
Jonathan Watt
549b278c72 Bug 1082477, part 1 - Convert Matrix4x4::TranslatePost/ScalePost callers to Matrix4x4::PostTranslate/PostScale. r=Bas 2014-10-16 10:51:12 +01:00
Kartikaya Gupta
85de5eb65b Bug 1078316 - Tweaks for root-frame overlay scrollbars so they don't oscillate while panning around. r=botond,tn 2014-10-08 22:56:38 -04:00
Jonathan Watt
fa5188c412 Bug 1077961, part 2 - Stop doing lots of unnecessary and expensive Matrix4x4 multiplication. r=Bas 2014-10-08 04:43:00 +01:00
Kartikaya Gupta
5a23c53a99 Bug 1043859 - Fix the code to remove the async transform from scrollbar layers that are descendants of their content. r=botond 2014-10-01 17:49:31 -04:00
Kartikaya Gupta
2088f2e72b Bug 1043859 - Expose the APZC overscroll transform as a separate function. r=botond 2014-10-01 17:49:31 -04:00
Kartikaya Gupta
67294e3798 Bug 1074944 - Update APZ code to use Matrix4x4::Inverse() where possible. r=nical 2014-10-01 13:13:05 -04:00
Kartikaya Gupta
1a8266e9c2 Bug 1056423 - Follow-up to fix build bustage on a CLOSED TREE. r=me 2014-09-18 13:46:47 -04:00
Kartikaya Gupta
9d277667a6 Bug 1056423 - Adjust scrollbar clip rect also when accounting for async transform. r=botond 2014-09-18 13:19:20 -04:00
Jeff Muizelaar
4f3610dd6b 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.
2014-09-10 15:59:00 -04:00
Markus Stange
e45b4b97a1 Bug 1061327 - When the scrolled layer is not an ancestor of the scrollbar layer, search the whole layer tree. r=botond 2014-09-10 12:19:53 +02:00
Markus Stange
4571aff914 Bug 1061327 - Don't stop searching for scrolled layers when encountering a ScrollInfoLayer. r=botond 2014-09-10 12:19:25 +02:00
Kartikaya Gupta
16e79f3acc Bug 1063494 - Properly handle async-scrolled layers that are also fixed/sticky-position. r=botond,BenWa 2014-09-09 15:12:14 -04:00
Kartikaya Gupta
cdea48970d Bug 1064840 - Only display the unused-apz visual warning if the async transform is not applied to any content. r=botond 2014-09-09 12:33:25 -04:00
Jeff Muizelaar
7e82b47fd1 Bug 1049564. Backout unintentionally landed code.
CLOSED TREE
2014-09-08 11:07:48 -04:00
Jeff Muizelaar
e9003d6610 Bug 1049564. Remove sketchy sizing code from CompositorOGL. r=nical
This came from the layers refactoring and taking it out doesn't
seem to cause any test failures.
2014-09-08 10:54:26 -04:00
Botond Ballo
244897cf27 Bug 1057578 - Change the overscroll transform exposed by APZC from a ViewTransform to a Matrix4x4. r=kats 2014-08-29 14:41:49 -04:00
David Zbarsky
dab4416cdc Bug 1060165: Remove gfxPoint3D r=nical 2014-08-29 14:47:30 -04:00
Kartikaya Gupta
105484c576 Bug 1055760 - Update AsyncCompositionManager's animation-sampling code to deal with multiple FrameMetrics. r=botond 2014-08-27 22:13:42 -04:00
Kartikaya Gupta
a8c25c63cf Bug 1055760 - Update AsyncCompositionManager's fixed- and sticky-layer-adjusting code to deal with multiple FrameMetrics. r=botond 2014-08-27 22:13:42 -04:00
Kartikaya Gupta
ba16305db9 Bug 1055760 - Update AsyncCompositionManager's scrollbar-adjusting code to deal with multiple FrameMetrics. r=botond 2014-08-27 22:13:42 -04:00
Kartikaya Gupta
4921622f56 Bug 1055760 - Update AsyncCompositionManager's async-transform application code to deal with multiple FrameMetrics. r=botond 2014-08-27 22:13:41 -04:00
Kartikaya Gupta
c11731dee2 Bug 1055760 - Replace GetPrimaryScrollableLayer with functions that are more appropriate. r=BenWa 2014-08-27 22:13:41 -04:00
Kartikaya Gupta
9d9e2ce30a Bug 1055760 - Update tiling code to use LayerMetricsWrapper. r=botond,BenWa 2014-08-27 22:13:41 -04:00
Kartikaya Gupta
e4637f37f2 Bug 1055760 - Rearrange AlignFixedAndStickyLayers; no functional changes. r=botond 2014-08-27 22:13:40 -04:00
Kartikaya Gupta
2578cbf15e Bug 1052063 - Do a single pass over the APZC tree to advance animations before sampling. r=botond 2014-08-19 21:17:10 -04:00
Kartikaya Gupta
0797f2e6f4 Bug 1052063 - Reverse the order of transforms applied for layers during composition. r=botond 2014-08-19 21:17:09 -04:00
Kartikaya Gupta
37454b9882 Bug 1051985 - Move the APZ from ContainerLayer to Layer. r=mattwoodrow,botond 2014-08-11 20:00:37 -04:00
Kartikaya Gupta
18bbff8294 Bug 1051985 - Move the FrameMetrics from ContainerLayer to Layer. r=mattwoodrow,BenWa 2014-08-11 20:00:36 -04:00
Brian Birtles
f3e3f8efd7 Bug 1040543 part 8 - Move timing parameters from AnimationPlayer to Animation; r=bz
As the second step in dividing functionality between AnimationPlayer and
Animation, this patch moves the AnimationTiming member from AnimationPlayer to
Animation.

Most of this patch is simply moving code around. However, one significant
functional difference is that Animation::GetLocalTime() uses the mParentTime
member which is set when the Animation is updated by the player it is attached
to.

Other less significant differences are:

* AnimationPlayer::GetLocalTime is renamed to GetCurrentTimeDuration
  In Web Animations, animation players have a (writeable) "current time" and
  animations have a (read-only) "local time".
  We would call the method simply "GetCurrentTime" (instead of
  "GetCurrentTimeDuration") but GetCurrentTime is the name of the method used in
  the content-facing API where it returns a double.

* "IsCurrent" is defined on both AnimationPlayer and Animation with the version
  in AnimationPlayer serving mostly as a convenience shortcut to the version on
  Animation.

* Animation::GetComputedTiming (previously on AnimationPlayer) now makes the
  timing parameter optional since most of the time it is not needed.
2014-08-10 17:06:50 +10:00
Brian Birtles
5af463c37a Bug 1040543 part 1 - Move/Rename ElementAnimations to dom::AnimationPlayer; r=bz
This patch renames mozilla::ElementAnimations to mozilla::dom::AnimationPlayer
and moves the code from layout/style/AnimationCommon.cpp to
dom/animation/AnimationPlayer.cpp.

It also moves various helper classes needed by AnimationPlayer to
AnimationPlayer.cpp and moves them from the mozilla::css namespace to the
mozilla namespace.

Beyond that, there are no functional changes contained in this patch.

The renaming of various members and variables that used to refer to
ElementAnimation objects but now refer to AnimationPlayer objects--to give them
a more appropriate name--is performed in a subsequent patch.
2014-08-10 17:06:44 +10:00
David Zbarsky
37bec6718c Bug 952977: More gfx::Matrix cleanups r=nical 2014-08-01 08:31:49 -04:00
David Zbarsky
59ff262b8d Bug 952977: More gfx::Matrix cleanup in APZC r=nical 2014-08-01 08:31:49 -04:00
David Zbarsky
62f624f451 Bug 952977: More gfx::Matrix cleanup in AsyncCompositionManager r=nical 2014-08-01 08:31:46 -04:00
Wes Kocher
e230d2b1cf Backed out 11 changesets (bug 952977) for reftest-no-accel failures
Backed out changeset ea2367c19da3 (bug 952977)
Backed out changeset c401c8748eb3 (bug 952977)
Backed out changeset a93e9ff1043b (bug 952977)
Backed out changeset 765b7f67163e (bug 952977)
Backed out changeset 3d8cf4f5777f (bug 952977)
Backed out changeset 8993710a3ab3 (bug 952977)
Backed out changeset 1298c39b745a (bug 952977)
Backed out changeset be0b899fbe5e (bug 952977)
Backed out changeset f69bea1f1feb (bug 952977)
Backed out changeset 1a745777f07e (bug 952977)
Backed out changeset 5ad1d18dfe17 (bug 952977)
2014-07-29 18:58:46 -07:00
David Zbarsky
f1c024ef08 Bug 952977: More gfx::Matrix cleanups r=nical 2014-07-29 19:18:51 -04:00
David Zbarsky
9615af3c80 Bug 952977: More gfx::Matrix cleanup in APZC r=nical 2014-07-29 19:18:51 -04:00
David Zbarsky
4e72ae5005 Bug 952977: More gfx::Matrix cleanup in AsyncCompositionManager r=nical 2014-07-29 19:18:49 -04:00
Botond Ballo
aa52ff7f09 Bug 1035598 - Apply async scale correctly to ContainerLayers whose content does not start at the origin. r=kats,mattwoodrow 2014-07-22 18:10:54 -04:00
Kartikaya Gupta
e480e44f68 Bug 1040906 - Replace the out-param on matrix conversion helpers with a return value. r=Bas 2014-07-22 09:12:14 -04:00
Botond Ballo
e6abe57b85 Bug 1036119 - Have AsyncCompositionManager support layers which are both scrollable and fixed-position. r=Cwiiis 2014-07-17 16:08:33 -04:00