Commit Graph

732 Commits

Author SHA1 Message Date
Kartikaya Gupta
d0bdd89470 Bug 1052063 - Reverse the order of transforms applied for layers during composition. r=botond 2014-08-19 21:17:09 -04:00
Botond Ballo
1d16def11d Bug 923512 - Introduce strongly-typed coordinate classes. r=kats,Bas
--HG--
extra : rebase_source : 22e5fe577ea503aede765c70e16c0bf875c4a9fd
2014-08-19 13:08:16 -04:00
Benoit Girard
a308375588 Bug 1052751 - Part 1: Cull translated layers on the compositor. r=roc 2014-08-14 11:46:21 -04:00
Ryan VanderMeulen
b364e001aa Backed out changeset 926c83cd24f0 (bug 1052751) for B2G reftest failures. 2014-08-15 17:15:26 -04:00
Jeff Muizelaar
b896779c48 Bug 1054474. Change FPSCounter to not use ToSecondsSigDigits(). r=BenWa
ToSecondsSigDigits is slower and broken on Windows and doesn't
really provide any value in this case.

--HG--
extra : rebase_source : 889657d9bd1e7a2bc4bd2f8b2da16fac63ece822
2014-08-15 15:54:05 -04:00
Benoit Girard
41f5bc3f33 Bug 1052751 - Part 1: Cull translated layers on the compositor. r=roc
--HG--
extra : rebase_source : 6979b4d41c40ceb808a48ff8a1c038bbcfbed5b0
2014-08-15 13:46:23 -04:00
Jeff Muizelaar
bc537cc1e3 Bug 1016539. Add support for accelerated a11y filters. r=mwoodrow
This adds the ability to render to a temporary surface and use that
to apply a filter effect to all of the content.
2014-08-07 17:44:08 -04:00
Kartikaya Gupta
89ab2a4eb0 Bug 1051985 - Move the APZ from ContainerLayer to Layer. r=mattwoodrow,botond 2014-08-11 20:00:37 -04:00
Kartikaya Gupta
9370d1374f Bug 1051985 - Move the background color and content description from ContainerLayer to Layer. r=mattwoodrow 2014-08-11 20:00:37 -04:00
Kartikaya Gupta
a0ad18d035 Bug 1051985 - Move the FrameMetrics from ContainerLayer to Layer. r=mattwoodrow,BenWa 2014-08-11 20:00:36 -04:00
Brian Birtles
eee37dc2bd 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
b1759d304e 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.

--HG--
rename : layout/style/AnimationCommon.cpp => dom/animation/AnimationPlayer.cpp
rename : layout/style/AnimationCommon.h => dom/animation/AnimationPlayer.h
2014-08-10 17:06:44 +10:00
Matt Woodrow
a4fa815cab Bug 1048110 - Expand complex visible regions if we're going to be resampling when using tiling. r=Bas 2014-08-04 15:29:55 +12:00
Nicolas Silva
2bea980413 Bug 1043426 - Don't crash when failing to upload apply a maskon a container layer. r=Bas 2014-08-01 15:53:12 +02:00
Wes Kocher
7128337cab Backed out 2 changesets (bug 1048110) for various Android mochitest failures on a CLOSED TREE
Backed out changeset 1cf6f4f27811 (bug 1048110)
Backed out changeset b89f54e21c0b (bug 1048110)
2014-08-06 18:32:52 -07:00
Matt Woodrow
4a5cbd7c21 Bug 1048110 - Expand complex visible regions if we're going to be resampling when using tiling. r=Bas 2014-08-04 15:29:55 +12:00
Matt Woodrow
fae9993fd9 Bug 1046025 - Add component alpha support to TiledContentClient/Host. r=nical 2014-07-29 17:21:02 +12:00
Wes Kocher
235636ff24 Backed out 3 changesets (bug 923512) for mochitest-2 bustage on a CLOSED TREE
Backed out changeset f8720d81b74f (bug 923512)
Backed out changeset f431232084b7 (bug 923512)
Backed out changeset dff51863663c (bug 923512)
2014-08-06 16:36:35 -07:00
Botond Ballo
034af10f54 Bug 923512 - Introduce strongly-typed coordinate classes (Part2: Changes to rest of codebase, and switching Axis to use the strongly-typed coordinates). r=kats 2014-07-29 17:24:12 -04:00
Ed Morley
bd4fbcb4ea Backed out changeset 9545e672983b (bug 1048916) for build failures; CLOSED TREE 2014-08-06 17:04:01 +01:00
Jeff Muizelaar
de470f8301 Bug 1048916. Convert a bunch of layers from nsAutoPtr to UniquePtr. r=roc
This makes the ownership of LayerProperties more clear.

--HG--
extra : rebase_source : c0413670f63906f90f083c0d9aaa8f55cf1ce898
2014-08-05 10:48:01 -04:00
Nicolas Silva
d6dd3d64a1 Bug 1025138 - Integrate DrawTargetTiled preffed off. r=mattwoodrow 2014-08-06 14:40:03 +02:00
Ryan VanderMeulen
fa0e41b84a Backed out changeset fe28abfc3842 (bug 1043426) for Android reftest failures.
CLOSED TREE
2014-08-01 11:20:10 -04:00
Nicolas Silva
7f99b1f37d Bug 1043426 - Don't crash when failing to upload apply a maskon a container layer. r=Bas 2014-08-01 15:53:12 +02:00
David Zbarsky
42e6fcdddb Bug 952977: More gfx::Matrix cleanups r=nical 2014-08-01 08:31:49 -04:00
David Zbarsky
9c8ef1fd12 Bug 952977: More gfx::Matrix cleanup in APZC r=nical 2014-08-01 08:31:49 -04:00
David Zbarsky
2e0df93cca Bug 952977: More gfx::Matrix cleanup in LayerManagerComposite r=nical 2014-08-01 08:31:47 -04:00
David Zbarsky
5192ab7514 Bug 952977: More gfx::Matrix cleanup in AsyncCompositionManager r=nical 2014-08-01 08:31:46 -04:00
Wes Kocher
02d44fddfa 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
26605d5924 Bug 952977: More gfx::Matrix cleanups r=nical 2014-07-29 19:18:51 -04:00
David Zbarsky
b217f375b9 Bug 952977: More gfx::Matrix cleanup in APZC r=nical 2014-07-29 19:18:51 -04:00
David Zbarsky
14ba4f294e Bug 952977: More gfx::Matrix cleanup in LayerManagerComposite r=nical 2014-07-29 19:18:49 -04:00
David Zbarsky
0913b5df71 Bug 952977: More gfx::Matrix cleanup in AsyncCompositionManager r=nical 2014-07-29 19:18:49 -04:00
Nicolas Silva
feaa5c6996 Bug 1043929 - Ensure that a locked TextureHost can give access to a valid TextureSource for some of the texture types. r=Bas 2014-07-28 14:58:38 +02:00
Nicolas Silva
91f752dde9 Bug 1043929 - Unlock the mask texture in case of failure. r=Bas 2014-07-28 14:58:20 +02:00
Boris Chiou
be39891576 Bug 959118 - Dump layer tree with layer scope on the viewer. r=dglastonbury
We also want to dump layer tree on the viewer, so we
can check the layer tree and layerscope together
in the viewer. This can help us resolve more gfx bugs.

In this patch, I only add a part of the layer data to
the protocol buffer packet, and you can check the
.proto file for more information if you want to add
more layer data.

By the way, as Jeff's suggestion, use auto & MakeUnique<>()
to make the UniquePtr initialization more concise.
2014-07-27 22:32:00 +02:00
Kartikaya Gupta
c1ada21d96 Bug 1043663 - Remove incorrect assertion. r=botond 2014-07-24 18:47:02 -04:00
Botond Ballo
323feb0c0b 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
cde070ddb8 Bug 1038416 - Draw the background color under reduce-opacity low-res content. r=botond 2014-07-22 17:44:15 -04:00
Kartikaya Gupta
d6ffaa500c Bug 1038416 - Don't apply opacity-reduction to low-res content that is not fully opaque. r=BenWa 2014-07-22 17:44:15 -04:00
Jeff Muizelaar
9eacaec104 Bug 1041690. ShmTextureHost: Remove unnecessary manual deletion
--HG--
extra : rebase_source : b236e7ca49271518e5f9dfe5313475419a7b6250
2014-07-22 16:55:19 -04:00
Octoploid
ea3a63713b bug 1036401 - adjust includes to fix up some issues with complete types instead of forward declarations being required r=bz r=bjacob 2014-07-22 11:29:33 -04:00
Jeff Muizelaar
2cfb959a9f Bug 1041690. Make ShmemTextureHost's mShmem member a UniquePtr. r=nical
This makes the ownership clear and removes some code.

--HG--
extra : rebase_source : fca529c3e5dd224be090876a6f4528ed8686e4e5
2014-07-21 18:55:02 -04:00
Kartikaya Gupta
9dc6a33e69 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
d7fa58607a Bug 1036119 - Have AsyncCompositionManager support layers which are both scrollable and fixed-position. r=Cwiiis 2014-07-17 16:08:33 -04:00
Sotaro Ikeda
24ef28834a Bug 1039883 - release Tiled layer's gralloc when an application is background r=nical 2014-07-19 05:33:12 -07:00
Jeff Muizelaar
b65077c128 Bug 1037220. Reorder rendering to avoid render target switches. r=mwoodrow,bgirard
Before we would for example draw the background, switch to a container layers's
render target, draw to that, switch back the render target draw the
container layer, move on to the next container layer etc.

This render target switching is especially bad for mobile gpus (like adreno
that needs to move things in and out of gmem).

This change switches to a two pass approach that renders all of the container
layers first (unless they need a copy of the background) and then composites
everything all together.

--HG--
rename : toolkit/devtools/jsbeautify/beautify.js => browser/devtools/shared/Jsbeautify.jsm
rename : security/pkix/include/pkix/Input.h => security/pkix/lib/pkixder.h
rename : security/pkix/include/pkix/Result.h => security/pkix/lib/pkixutil.h
rename : toolkit/components/places/tests/unifiedcomplete/test_416211.js => toolkit/components/places/tests/autocomplete/test_416211.js
rename : toolkit/components/places/tests/unifiedcomplete/test_416214.js => toolkit/components/places/tests/autocomplete/test_416214.js
rename : toolkit/components/places/tests/unifiedcomplete/test_417798.js => toolkit/components/places/tests/autocomplete/test_417798.js
rename : toolkit/components/places/tests/unifiedcomplete/test_418257.js => toolkit/components/places/tests/autocomplete/test_418257.js
rename : toolkit/components/places/tests/unifiedcomplete/test_422277.js => toolkit/components/places/tests/autocomplete/test_422277.js
rename : toolkit/components/places/tests/unifiedcomplete/test_autocomplete_on_value_removed_479089.js => toolkit/components/places/tests/autocomplete/test_autocomplete_on_value_removed_479089.js
rename : toolkit/components/places/tests/unifiedcomplete/test_download_embed_bookmarks.js => toolkit/components/places/tests/autocomplete/test_download_embed_bookmarks.js
rename : toolkit/components/places/tests/unifiedcomplete/test_empty_search.js => toolkit/components/places/tests/autocomplete/test_empty_search.js
rename : toolkit/components/places/tests/unifiedcomplete/test_enabled.js => toolkit/components/places/tests/autocomplete/test_enabled.js
rename : toolkit/components/places/tests/unifiedcomplete/test_escape_self.js => toolkit/components/places/tests/autocomplete/test_escape_self.js
rename : toolkit/components/places/tests/unifiedcomplete/test_ignore_protocol.js => toolkit/components/places/tests/autocomplete/test_ignore_protocol.js
rename : toolkit/components/places/tests/unifiedcomplete/test_keyword_search.js => toolkit/components/places/tests/autocomplete/test_keyword_search.js
rename : toolkit/components/places/tests/unifiedcomplete/test_match_beginning.js => toolkit/components/places/tests/autocomplete/test_match_beginning.js
rename : toolkit/components/places/tests/unifiedcomplete/test_multi_word_search.js => toolkit/components/places/tests/autocomplete/test_multi_word_search.js
rename : toolkit/components/places/tests/unifiedcomplete/test_special_search.js => toolkit/components/places/tests/autocomplete/test_special_search.js
rename : toolkit/components/places/tests/unifiedcomplete/test_swap_protocol.js => toolkit/components/places/tests/autocomplete/test_swap_protocol.js
rename : toolkit/components/places/tests/unifiedcomplete/test_tabmatches.js => toolkit/components/places/tests/autocomplete/test_tabmatches.js
rename : toolkit/components/places/tests/unifiedcomplete/test_word_boundary_search.js => toolkit/components/places/tests/autocomplete/test_word_boundary_search.js
rename : toolkit/components/places/tests/unifiedcomplete/head_autocomplete.js => toolkit/components/places/tests/inline/head_autocomplete.js
rename : toolkit/components/places/tests/unifiedcomplete/test_autocomplete_functional.js => toolkit/components/places/tests/inline/test_autocomplete_functional.js
rename : toolkit/components/places/tests/unifiedcomplete/test_casing.js => toolkit/components/places/tests/inline/test_casing.js
rename : toolkit/components/places/tests/unifiedcomplete/test_do_not_trim.js => toolkit/components/places/tests/inline/test_do_not_trim.js
rename : toolkit/components/places/tests/unifiedcomplete/test_keywords.js => toolkit/components/places/tests/inline/test_keywords.js
rename : toolkit/components/places/tests/unifiedcomplete/test_queryurl.js => toolkit/components/places/tests/inline/test_queryurl.js
rename : toolkit/components/places/tests/unifiedcomplete/test_trimming.js => toolkit/components/places/tests/inline/test_trimming.js
rename : toolkit/components/places/tests/unifiedcomplete/test_typed.js => toolkit/components/places/tests/inline/test_typed.js
rename : toolkit/components/places/tests/unifiedcomplete/test_zero_frecency.js => toolkit/components/places/tests/inline/test_zero_frecency.js
rename : toolkit/components/places/tests/unifiedcomplete/xpcshell.ini => toolkit/components/places/tests/inline/xpcshell.ini
extra : rebase_source : dc06e25bcc95db43b5c5267d1b7e1065992ddd9c
2014-07-15 16:26:20 -04:00
Wes Kocher
8ddcd2a26d Backed out changeset 9b764e12796d (bug 1039883) for b2g m7 failures 2014-07-18 14:21:44 -07:00
Sotaro Ikeda
b7cddab42f Bug 1039883 - release Tiled layer's gralloc when an application is background r=nical 2014-07-18 12:40:35 -07:00
Carsten "Tomcat" Book
273ec53f14 Backed out changeset 79d65a1bbb01 (bug 1039883) for assertion failures on a CLOSED TREE 2014-07-18 16:09:15 +02:00