Commit Graph

980 Commits

Author SHA1 Message Date
Danilo Cesar Lemes de Paula
1da46b6bb3 Bug 1156401 - Fix painting when building fennec with apzc. r=kats, r=botond
Since SetFirstPaintViewport wasn't being called on
Fennec with APZ, none of the painted content was being displayed.
2015-04-30 06:08:00 -04:00
Brian Birtles
fb73e3f8ee Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly. r=smaug 2015-04-30 09:06:43 -04:00
Carsten "Tomcat" Book
5791ead1d5 Backed out changeset 1b5fc672f0d4 (bug 1159082) for B2G ICS Emulator opt R6 test failures on a CLOSED TREE 2015-04-30 13:15:04 +02:00
Brian Birtles
1661b20915 Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly; r=smaug 2015-04-28 10:16:45 +09:00
Kartikaya Gupta
47e9346e42 Bug 1158933 - Replace the compositedHeight/scrollableHeight (and width) term with the adjusted scrollThumbRatio. r=botond 2015-04-29 07:22:27 -04:00
Kartikaya Gupta
7ed33652ef Bug 1158933 - Prevent scrollbars from jumping while zoomed in the B2G browser. r=botond 2015-04-29 07:22:27 -04:00
Timothy Nikkel
cfe17b6e52 Bug 1157066. When reading back the OMTA transfrom of a layer don't include transforms from async panning or zooming. r=kats,birtles
Containerless scrolling means that the pan zoom controller applies it's transforms (to compensate for differences between the state of layout the last time we painted and the current state as composited to the screen) to the layers that are scrolled instead of the container layer that contains the layers that scroll.

When running test_animations_omta.html there is a zoom of 1.306122 applied, and the page is scrolled down to 67 screen pixels (before the test starts, not sure why exactly). Gecko scrolls as close to 67 screen pixels as it can: 67/1.306122 = 51.29689 css pixels, which is 3077.813 appunits. Gecko scrolls to 3078 app units. When AsyncCompositionManager::TransformScrollableLayer runs we calculate the scroll position of gecko and the current scroll position that the pan zoom controller is using. Since there are no async pan or zoom operations taking place these should match. However when the gecko scroll position is calculated we get 3078/60*1.306122 = 67.0040586. So it applies a transform of 0.0040586 to the container layer for the transform that test_animations_omta.html is animating off main thread. When test_animations_omta.html reads the transform of this layer it fails because it's expecting 0 and 0.0040586 is outside of it's epsilon for considering it to be close enough.
2015-04-24 19:05:52 -05:00
Wes Kocher
d859f2ad4d Backed out changeset 517b9b831685 (bug 1157066) for build bustage 2015-04-24 14:56:55 -07:00
Timothy Nikkel
c773a56c70 Bug 1157066. When reading back the OMTA transfrom of a layer don't include transforms from async panning or zooming. r=kats,birtles
Containerless scrolling means that the pan zoom controller applies it's transforms (to compensate for differences between the state of layout the last time we painted and the current state as composited to the screen) to the layers that are scrolled instead of the container layer that contains the layers that scroll.

When running test_animations_omta.html there is a zoom of 1.306122 applied, and the page is scrolled down to 67 screen pixels (before the test starts, not sure why exactly). Gecko scrolls as close to 67 screen pixels as it can: 67/1.306122 = 51.29689 css pixels, which is 3077.813 appunits. Gecko scrolls to 3078 app units. When AsyncCompositionManager::TransformScrollableLayer runs we calculate the scroll position of gecko and the current scroll position that the pan zoom controller is using. Since there are no async pan or zoom operations taking place these should match. However when the gecko scroll position is calculated we get 3078/60*1.306122 = 67.0040586. So it applies a transform of 0.0040586 to the container layer for the transform that test_animations_omta.html is animating off main thread. When test_animations_omta.html reads the transform of this layer it fails because it's expecting 0 and 0.0040586 is outside of it's epsilon for considering it to be close enough.
2015-04-24 16:41:56 -05:00
Kartikaya Gupta
66242134a5 Bug 1157327 follow-up to add a comment. r=me and DONTBUILD 2015-04-23 15:18:22 -04:00
Kartikaya Gupta
d330a7876b Bug 1157327 - Don't cull out container layers, because their prepared data might be null and cause crashes. r=nical 2015-04-23 15:15:11 -04:00
Sotaro Ikeda
2f41005dd9 Bug 1152370 part 3 - Use DisplaySurface r=mwu 2015-04-23 06:49:40 -07:00
L. David Baron
c76d9df9af Bug 1156456 patch 3 - Send transform origin and perspective origin to layer in device pixels rather than CSS pixels. r=birtles 2015-04-22 19:37:04 -07:00
L. David Baron
e4a3e1ad29 Bug 1156456 patch 2 - Transform the z component just like the x and y. r=birtles
I confirmed locally that this patch fixes the reftest (per reftest.list
change).
2015-04-22 19:37:04 -07:00
Andrea Marchesini
cece1d9f00 Bug 1156632 - Remove unused forward class declarations - patch 6 - the rest of the tree, r=ehsan 2015-04-22 08:29:24 +02:00
Nicolas Silva
51e181888b Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
Brian Birtles
6033b2c86d Bug 1154615 part 1 - Rename AnimationPlayer to Animation in WebIDL; r=smaug
This patch is a fairly minimal rename of the AnimationPlayer interface. It
leaves a bunch of local variables and helper classes still using the word
"player". These will be addressed in subsequent patches that don't require DOM
peer review.
2015-04-21 10:22:09 +09:00
Sotaro Ikeda
5044e7726b Bug 1152135 - Split EGLSurface buffer swap and HWC buffer swap r=mwu,nical,jgilbert 2015-04-17 09:28:41 -07:00
Carsten "Tomcat" Book
af87273092 Backed out changeset abe6234be8a3 (bug 1152135) for Android 4 opt/debug perma failure 2015-04-17 12:04:55 +02:00
Ethan Lin
e854404148 Bug 1146214 - Implement fence delivery. Combine ipc messages and remove reply fence delivery message. r=nical 2015-04-10 02:19:00 +02:00
Ethan Lin
d3b3dd42d4 Bug 1146214 - Remove unused set fence functions. r=nical 2015-04-10 02:12:00 +02:00
Sotaro Ikeda
c9102c6a9c Bug 1152135 - Split EGLSurface buffer swap and HWC buffer swap r=mwu,nical,jgilbert 2015-04-16 18:15:26 -07:00
Sotaro Ikeda
4e35e551e0 Bug 1154313 - Move sUsingHwc to gfxPrefs r=mwu,nical 2015-04-15 06:39:44 -07:00
Carsten "Tomcat" Book
434f9030e7 merge mozilla-inbound to mozilla-central a=merge 2015-04-15 14:28:05 +02:00
Wes Kocher
149e55aae2 Merge m-c to fx-team a=merge CLOSED TREE 2015-04-14 15:40:46 -07:00
Randall Barker
4cf16d8497 Bug 1148149 - Support Android Presentation API. r=snorp, r=jgilbert 2015-04-10 22:14:00 -04:00
Ying-Ruei Liang (KK)
5b075b3ea2 Bug 1143522 - Convert Layer::mClipRect to ParentLayerIntRect. r=botond
Change interface of getter/setter for mClipRect,
also necessary modification for codes that use these resources.

* * *
Bundle mUseClipRect and mClipRect as Maybe<ParentLayerIntRect> mClipRect
2015-04-11 22:03:00 -04:00
Sotaro Ikeda
ecd0fc423c Backed out changeset 29d01ad10d0b (bug 1152135) 2015-04-13 12:28:06 -07:00
Brian Birtles
ec581c1cbf Bug 1153734 part 2 - Rename Animation to KeyframeEffectReadonly; r=smaug
We define KeyframeEffectReadonly in KeyframeEffect.cpp since Web Animations also
defines KeyframeEffect and when we come to implement that I expect we'll define
it in the same class, maybe even using the same object.

This patch also adds a few missing includes in places where
KeyframeEffectReadonly is used so that we're not just cargo-culting it in.
2015-04-15 08:48:21 +09:00
David Anderson
12fce2feee Scrollbar thumbs can overlap scrollbar arrows during APZ scrolling. (bug 1152469, r=botond,mstange) 2015-04-12 23:03:02 -04:00
Sotaro Ikeda
42ad3c4bc5 Bug 1152135 - Split EGLSurface buffer swap and HWC buffer swap r=mwu,nical,jgilbert 2015-04-12 11:23:46 -07:00
Nicolas Silva
f2da0db3a0 Bug 1132854 - Remove the gfx::ToIntSize conversion helper. r=Bas 2015-04-07 16:08:57 +02:00
David Anderson
d2b19528e2 Fix async transforms on scrollbars not including any existing shadow transform. (bug 1128740 part 2, r=botond) 2015-04-07 00:50:15 -07:00
David Anderson
9d3582016c Fix the order async transforms are applied to scrollbars. (bug 1128740 part 1, r=botond) 2015-04-07 00:50:13 -07:00
Markus Stange
a8d770c2ee Bug 1148871 - Only apply checkerboarding background color to opaque layers. r=botond 2015-03-29 01:26:08 -04:00
David Anderson
7c03fa2d40 Fix AsyncCompositionManager not comparing layer tree IDs when finding scrollbar targets. (bug 1151169, r=kats) 2015-04-06 11:27:07 -07:00
Botond Ballo
44b0cb841b Bug 1145730 - Restrict the async transforms applied to mask layers to those caused by fixed-position adjustment. r=kats 2015-04-01 16:47:05 -04:00
JerryShih
6556a9dbf8 Bug 1148718 - init TextureSource for current TextureHost when attach. r=nical, r=sotaro 2015-04-02 09:40:00 -04:00
L. David Baron
42236287fa Bug 847287 patch 13 - Apply animations/transitions on the layer in the order that reflects how they override, rather than the opposite. r=birtles
This independently would have fixed some of the problems fixed in this
bug.  It would not have fixed them fully, though, since it would not
have prevented us from sending animations being covered up by !important
rules to the compositor.
2015-03-31 15:05:55 -07:00
Nicolas Silva
edb2bebd2e Bug 1145981 - Do not crash when a DIB texture is updated without a compositor. r=jrmuizel 2015-03-27 11:16:27 +01:00
Nicolas Silva
eae4d10b4d Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc 2015-03-29 16:59:08 +02:00
Andrea Marchesini
b212600c95 Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Nicolas Silva
8ff8e6ccf2 Bug 1145981 - Backout, missing review 2015-03-27 11:19:22 +01:00
Nicolas Silva
2683def1bf Bug 1146912 - Finish replacing TextureHost::GetTextureSource by BindTextureSource. r=sotaro 2015-03-27 11:16:34 +01:00
Nicolas Silva
ba24a94dc6 Bug 1145981 - Do not crash when a DIB texture is updated without a compositor. r=jrmuizel 2015-03-27 11:16:27 +01:00
Nicolas Silva
5e23702a92 Bug 1147894 - Remove the redundant OpUpdateTexture IPDL message. r=sotaro 2015-03-27 11:16:22 +01:00
Nicolas Silva
301add70f5 Bug 1147894 - Only use non-null compositors with TextureHost::SetCompositor. r=sotaro 2015-03-27 11:16:18 +01:00
Sotaro Ikeda
158ab3a077 Bug 1124907 - Call SetCompositor() only when it is valid r=nical 2015-03-24 07:21:15 -07:00
Kartikaya Gupta
8b0a04901c Bug 1145764 - Add logging for tile retention inside a TiledLayerBuffer. r=nical 2015-03-23 13:01:02 -04:00
Ehsan Akhgari
33bb32f549 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00