Commit Graph

18523 Commits

Author SHA1 Message Date
Brian Birtles
90986d4597 Bug 1113425 part 2 - Apply async properties when querying the animated transform; r=mattwoodrow
In order to test off-main thread animations, we have a method that will return
the animated transform value set on a shadow layer. This method will return null
if the transform was not set by animation.

However, in some situations we temporarily clear the animation transform. For
example, when we synchronize a composite layer with its content layer, we reset
the animation transform. Then, on the next composite, we will recalculate the
animated value.

If we try to query the animated transform value in between resetting it and the
next composite we will get back null. To avoid a race condition, in
ShadowLayersUpdated after potentially clearing the animated transform, we
synchronously update the async properties on the layer transform in order
to reinstate the animated transform (so it is there when we go to query it).
However we *only* do this when the mIsTesting flag is set which is true
whenever we have the refresh driver under test control.  Furthermore, we only
do it when we already have a pending composite task to better match conditions
under regular operation.

In test_deferred_start.html, however, we specifically need to test without
putting the refresh driver under test control. As a result mIsTesting will be
false and we can encounter a race condition when querying the animated
transform.

To work around this, this patch makes us *also* update async properties
when fetching the animated transform value. The method for getting the
animated transform value is only used for testing so it should have no effect
on the regular compositing behavior.

It would seem that we could then remove the call from ShadowLayersUpdated but
doing this caused a small number of test cases to fail. In particular one test
for *opacity* in test_animations_omta.html was failing at the end of the
animation because we ended up with a stale opacity animation value on the
compositor which the synchronous update was previously removing. The test,
in this case, should be ignoring the value on the compositor but, unlike
transform, there is no flag for indicating whether or not the opacity on shadow
layers has been set by animations. As a result, this patch leaves the call that
triggers a synchronous update in test mode when updating shadow layers.
2015-03-17 18:38:12 +09:00
Seth Fowler
78ab87250d Bug 1124084 - Flip on downscale-during-decode everywhere. r=tn 2015-03-17 13:56:50 -07:00
Ryan VanderMeulen
088204eba4 Backed out changeset e86c7b372d7a (bug 1120780) for causing bug 1144224.
CLOSED TREE
2015-03-17 15:46:50 -04:00
Ryan VanderMeulen
2391e7301f Backed out changeset bb4b51d4af93 (bug 1143653) for WinXP assertions. 2015-03-17 12:40:47 -04:00
Daniel Holbert
082fd9cd7f Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
This patch was generated by a script.  Here's the source of the script for
future reference:

find . \( -iname "*.cpp" -o -iname "*.h" \) | \
  xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Nicolas Silva
08a5fef1fc Bug 1144147 - Warning fix in DrawTargetCairo.cpp. r=jrmuizel 2015-03-17 16:53:46 +01:00
Nicolas Silva
0082df31ab Bug 1142659 - Fix coverity warning in Layers::UserData test. r=jrmuizel 2015-03-17 15:50:06 +01:00
Nicolas Silva
10d43b2e93 Bug 1143653 - Crash in CompositorD3D9 rather than TextureD3D9 if device reset fails, after a few attemps. r=jrmuizel 2015-03-17 15:05:41 +01:00
Carsten "Tomcat" Book
0503c0d6df merge mozilla-inbound to mozilla-central a=merge 2015-03-17 11:36:52 +01:00
Michael Wu
f67a448e4b Bug 1120780 - Remove special handling for venus, r=sotaro 2015-03-17 09:38:34 +08:00
Phil Ringnalda
3bfd694773 Merge f-t to m-c, a=merge 2015-03-15 19:35:11 -07:00
Daniel Holbert
39b1ef61b3 Bug 1143239: Add MOZ_OVERRIDE annotations in ClientReadbackLayer. r=ehsan 2015-03-13 22:59:38 -07:00
Botond Ballo
8bd1b37f87 Bug 1036967 - Remove ScaleFactor::ScaleFactor(float, float). r=kats
--HG--
extra : rebase_source : abc44e25950cae78d0f1954d16f7f0c8f32884f1
extra : source : 33b3897e212ba2e5029ad283639a48dc6d23b4d6
2015-03-02 18:56:45 -05:00
Botond Ballo
cda50e28d3 Bug 1036967 - Use ScaleFactors2D instead of ScaleFactor where appropriate in APZ and surrounding code. r=kats
--HG--
extra : rebase_source : bbdd433260c2e5244602275aa8516723f87d5740
extra : source : a2dbf7ec87c50f35a089470e39d6b4b448992e3d
2015-03-06 13:54:10 -05:00
Botond Ballo
4f5da1dd25 Bug 1036967 - Introduce ScaleFactors2D. r=kats,Bas
--HG--
extra : rebase_source : e137820f9992c23f65aab1e40fb7390c9125b04a
extra : source : 1f79257b3df7fb146a1d4f7248905e0ac88f89d0
2015-03-06 13:53:47 -05:00
Botond Ballo
bec8946634 Bug 1141488 - On non-APZ platforms, combine any async transform with the OMTA transform rather than clobbering it the OMTA transform. r=kats
--HG--
extra : source : c0c812c1cfb0f71ebf1ed610678195a3e53c2725
2015-03-11 13:18:52 -04:00
Nicolas Silva
a8b719ecbb Bug 1125848 - Backout because of crashes. r=me 2015-03-13 15:13:12 +01:00
dvander@alliedmods.net
b4113c6bb2 Bug 1139845 - Fix ChromeProcessController crash when there is no document element. r=botond
--HG--
extra : rebase_source : 108a0ed9e25d46ed77b6deefa081e1e7d19cffe9
2015-03-10 13:44:00 -04:00
Dan Glastonbury
95dd0ae4f3 Bug 1124996 - Block S3TC on OSX 10.10 & HD3000. r=jgilbert
--HG--
extra : rebase_source : 2716431af5c3c11d05ac63fa12e904221f0e1ac7
2015-02-18 14:34:28 +10:00
Mike Hommey
7182517af9 Bug 1136958 - Reintroduce pixman code path removed in bug 1097776 for --disable-skia builds. r=jmuizelaar 2015-03-17 10:04:19 +09:00
Botond Ballo
2eb9751320 Bug 1139675 - Simplify the APIs for getting and setting the pres shell resolution. r=mstange,mattwoodrow
--HG--
extra : rebase_source : 18444e5f9304bbf9c2c14903be6aa4ebf8a08af3
extra : source : 60fe56e752d984a8d074af1bec1dfcd40a41e5f6
2015-03-06 18:07:59 -05:00
Botond Ballo
d3aed336d6 Bug 1139675 - Add a couple of operator overloads to BaseSize. r=kats
--HG--
extra : rebase_source : 83dc92abae4c970b93d9d6f6841392a6530d560d
extra : source : 2d49fc7c82c580e115bfcca8709582a7a9abda6b
2015-03-06 18:07:30 -05:00
Jeff Gilbert
d8509a9780 Bug 927995 - Handle antialias+preserveDrawingBuffer properly. - r=kamidphish 2015-03-16 12:16:50 -07:00
Kartikaya Gupta
3898d1b85c Bug 1142926 - Only notify the docshell of state changes when moving in and out of a transforming state across all APZCs. r=botond 2015-03-16 14:52:52 -04:00
Jeff Muizelaar
4bc2e31265 Bug 1132432. Implement AsShadowableLayer() for ClientReadbackLayers. r=roc
Without this we early exit from the loop in ShadowLayerForwarder::InsertAfter
which causes us to insert layers after the ReadbackLayers in the wrong order.

--HG--
extra : rebase_source : be70ea2551ca3468e924f1d3a2c5f320a9f54e18
2015-03-12 17:51:07 -04:00
Ryan VanderMeulen
fd575569d5 Backed out changeset 672cea72c662 (bug 994541) for making various browser-chrome tests more timeout-prone.
CLOSED TREE
2015-03-12 15:54:12 -04:00
Nicolas Silva
0863d3f6fa Bug 1123080 - Use cairo's image backend as canvas fallback on windows. r=Bas 2015-03-12 19:40:06 +01:00
Kartikaya Gupta
617f629233 Bug 1143518 - Remove the TryCapture path which is now obsolete. r=smaug 2015-03-16 12:32:17 -04:00
Carsten "Tomcat" Book
574c589b5a Backed out changeset 71966b47b3f9 (bug 1124996) for perma orange in test_conformance__extensions__webgl-compressed-texture-s3tc.html 2015-03-16 11:58:30 +01:00
Carsten "Tomcat" Book
9724ca2e3a Backed out changeset c7d73cfc59cb (bug 927995) 2015-03-16 11:28:46 +01:00
Jeff Gilbert
6f162d3f77 Bug 927995 - Handle antialias+preserveDrawingBuffer properly. - r=kamidphish 2015-03-16 00:31:33 -07:00
Dan Glastonbury
7929fb116d Bug 1124996 - Block S3TC on OSX 10.10 & HD3000. r=jgilbert
--HG--
extra : rebase_source : 60be1f10ad59b1d4a96d92512480fc346af5787d
2015-02-18 14:34:28 +10:00
Phil Ringnalda
65c70420b9 Merge m-c to m-i 2015-03-15 19:42:35 -07:00
Mason Chang
7df0c3a7b2 Bug 1142957 Fallback to main display CVDisplayLink if active displays aren't available. r=mstange 2015-03-14 21:23:53 -07:00
Mason Chang
bbe4c2b753 Backout 8545a7f27c8c (bug 1142708) for 10.6 Debug jit test failures. r=me 2015-03-14 20:37:41 -07:00
Mason Chang
55026e7cd5 Bug 1142708. Fallback to main display CVDisplayLink if active displays aren't available. r=mstange 2015-03-14 13:55:35 -07:00
Chris Lord
7484b298e0 Bug 994541 - Enable OMTC on Linux via BasicCompositor. r=Bas 2015-03-12 14:01:23 +01:00
Jonathan Kew
af316a7d7d Bug 1136557 - pt 2 - Round maxDescent similarly to maxAscent in nsFontMetrics. r=smontagu 2015-03-12 10:47:50 +00:00
Jonathan Kew
d8d7cd6058 Bug 1136557 - pt 1 - Ignore bogus ascent/descent values in 'vhea' table. r=smontagu 2015-03-12 10:47:32 +00:00
Jonathan Kew
05cc1cb432 Bug 1139646 - Ensure gfxHarfBuzzShaper only loads the vmtx table once, to avoid leaking it. r=smontagu 2015-03-12 10:03:09 +00:00
Matt Woodrow
10ced0676b Bug 1131638 - Disable hardware decoding if too many frames are invalid. r=cpearce 2015-03-12 22:14:51 +13:00
Matt Woodrow
def55ce594 Bug 1131638 - Discard video frames that fail to sync. r=cpearce 2015-03-12 22:13:23 +13:00
Mason Chang
334c6d4056 Bug 1141361 - Reuse the same thread when we start/stop vsync event for the windows vsync thread. r=jrmuizel 2015-03-11 18:35:50 -07:00
Sotaro Ikeda
114f04dcd9 Bug 1142071 - Re-add WaitForBufferOwnership() r=jgilbert 2015-03-11 14:10:24 -07:00
David Anderson
b0d8ea6da4 Fix APZ using incorrect scroll wheel deltas. (bug 1141728, r=kats) 2015-03-11 13:56:56 -07:00
Jeff Muizelaar
69363dcf7f Bug 1130978. Fix VisitEdges. r=kats
The code is broken because in the else case of VisitNextEdgeBetweenRect we
assume that r2->x1 < r1->x1. This is not always the case.

The fix is to have VisitNextEdgeBetweenRect return whether there's an overlap.
The calling code can than adjust x1 appropriately if r1 != r1_end && r2 != r2_end.
2015-03-11 01:18:30 -04:00
Ryan VanderMeulen
3807a08ace Backed out changeset 512454694cc4 (bug 1123080) for Windows crashtest failures. 2015-03-11 15:22:04 -04:00
Kartikaya Gupta
5116d7c5a8 Bug 1130982 - Ensure the clip rect on a multi-metrics layer belongs to the bottommost layer. r=botond
--HG--
extra : rebase_source : e4ccf248d3bd4ef4084e0077dc36a90cde4122a6
2015-03-11 13:36:12 -04:00
Kartikaya Gupta
5ee3e2e6f9 Bug 1130982 - Ensure the clip rect is appropriately adjusted for multi-framemetrics layers. r=botond
--HG--
extra : rebase_source : e5de1a95503377d40644c3b2656f64d7e643ef70
2015-02-20 16:01:41 -05:00
Nicolas Silva
4609707f8e Bug 1142143 don't early return in TextureClientD3D11::Unlock if readback fails. r=jrmuizel 2015-03-11 18:35:35 +01:00