Commit Graph
65 Commits
Author SHA1 Message Date
Matt Woodrow 026dc0404a Bug 1343638. r=mstange, a=abillings 2017-03-21 13:07:49 +13:00
Ethan Lin f7de5d3123 Bug 1361662 - Round mask layer boundary to match other layers. r=mattwoodrow 2017-05-10 23:38:00 -04:00
Bas Schouten 1877972372 Bug 1331718 - Part 3: Store pointers to DisplayItemData directly on nsIFrame. r=mattwoodrow r=dbaron
This patch aims to speed up the lookup and storage of DisplayItemData objects, by removing a level of indirection and preventing the previously required hashtable lookup in order to access these. Instead it stores an array of pointers on each frame that allows direct access to the DisplayItemData object by dereferencing the frame. Since most frames get either 1 or 2 DisplayItemData objects attached to them a specialized class is used that is of minimal size (2 * sizeof(void)) and that performs well for sizes 1 or 2.

MozReview-Commit-ID: HONKAmpk5H8
2017-05-10 05:07:38 +02:00
Bas Schouten 6e09ac7b95 Bug 1330570: Allocate DisplayItemData into the PresShell Arena. r=mattwoodrow
MozReview-Commit-ID: 8zVPIVSslVA
2017-05-10 05:07:37 +02:00
Carsten "Tomcat" Book 9b24d799ff Backed out changeset 9483bb6d8ce6 (bug 1330570) for test failures in test_selection_move_commands.html | cmd_scrollBottom - -300 should equal -300 2017-05-10 12:11:11 +02:00
Carsten "Tomcat" Book 33f25c265b Backed out changeset ff6861518bc3 (bug 1331718) 2017-05-10 12:09:04 +02:00
Bas Schouten fce9449853 Bug 1331718 - Part 3: Store pointers to DisplayItemData directly on nsIFrame. r=mattwoodrow r=dbaron
This patch aims to speed up the lookup and storage of DisplayItemData objects, by removing a level of indirection and preventing the previously required hashtable lookup in order to access these. Instead it stores an array of pointers on each frame that allows direct access to the DisplayItemData object by dereferencing the frame. Since most frames get either 1 or 2 DisplayItemData objects attached to them a specialized class is used that is of minimal size (2 * sizeof(void)) and that performs well for sizes 1 or 2.

MozReview-Commit-ID: HONKAmpk5H8
2017-05-10 05:07:38 +02:00
Bas Schouten 3881f359c9 Bug 1330570: Allocate DisplayItemData into the PresShell Arena. r=mattwoodrow
MozReview-Commit-ID: 8zVPIVSslVA
2017-05-10 05:07:37 +02:00
Botond Ballo c54a7e6d2f Bug 1357903 - Clip event regions when combining them to a containing PaintedLayerData. r=mstange
MozReview-Commit-ID: 9Z3ITH5raXl
2017-04-28 20:32:05 -04:00
Matt Woodrow 1e213586fa Bug 1349418 - Require ASRs to match before allow occlusions between layers. r=mstange 2017-04-21 14:03:40 +12:00
Markus Stange 27efd88cbc Bug 1349418 - Remove checkerboarding code and just use an opaque background color behind root scroll frames. r=kats 2017-04-21 14:02:15 +12:00
Michael Layzell 9e9bb6861f Bug 1339537 - Part 6: Pass std::function values tree by const reference instead of by value, r=ehsan
MozReview-Commit-ID: PVAqU2DPs2
2017-04-27 12:44:57 -04:00
Morris Tseng 65622d3268 Bug 1358961 - IsPartOfOpaqueLayer should consider ColorLayer as well. r=mattwoodrow
MozReview-Commit-ID: 9PUKdz7m1uJ
2017-04-25 11:02:48 +08:00
Sebastian Hengst cdeba7b3cb merge mozilla-central to mozilla-inbound. r=merge a=backout 2017-04-21 18:36:31 +02:00
Sebastian Hengst 036a7b0984 Backed out changeset 435e638babd1 (bug 1349418) for failing checkerboard-{1,2,3}.html on Android 4.3. r=backout a=backout
MozReview-Commit-ID: Au7FbypQNvf
2017-04-21 18:01:24 +02:00
Sebastian Hengst 7136e794ee Backed out changeset 3ccf396a61fe (bug 1349418)
MozReview-Commit-ID: 8VeAi8IOAl4
2017-04-21 17:59:43 +02:00
Morris Tseng 27848b9ac4 Bug 1358066 - Remove the painted layer invalidate region calculation if the painted layer has been optimized to color or image layer. r=mattwoodrow
MozReview-Commit-ID: KuwROm4DGk6
2017-04-21 15:27:48 +08:00
Matt Woodrow e0f8f53392 Bug 1349418 - Require ASRs to match before allow occlusions between layers. r=mstange 2017-04-21 14:03:40 +12:00
Markus Stange f07c1773ab Bug 1349418 - Remove checkerboarding code and just use an opaque background color behind root scroll frames. r=kats 2017-04-21 14:02:15 +12:00
Wes Kocher f8d2845e66 Merge inbound to m-c a=merge
MozReview-Commit-ID: DQDuEiYLWCO
2017-04-20 15:30:43 -07:00
Chris Peterson 77dd1c3b70 Bug 1356843 - Fix -Wcomma warnings in layout/. r=dholbert
clang's -Wcomma warning warns about suspicious use of the comma operator such as between two statements or to call a function for side effects within an expression. In addition to fixing the warnings, replace some char16_t(' ') casts of char literals with shorter UTF-16 character literals u' '.

layout/painting/FrameLayerBuilder.cpp:3647:31 [-Wcomma] possible misuse of comma operator here
layout/painting/FrameLayerBuilder.cpp:3657:41 [-Wcomma] possible misuse of comma operator here
layout/painting/nsCSSRenderingBorders.cpp:3336:33 [-Wcomma] possible misuse of comma operator here
layout/painting/nsCSSRenderingBorders.cpp:3336:60 [-Wcomma] possible misuse of comma operator here
layout/painting/nsCSSRenderingBorders.cpp:3337:33 [-Wcomma] possible misuse of comma operator here
layout/painting/nsCSSRenderingBorders.cpp:3337:60 [-Wcomma] possible misuse of comma operator here
layout/style/Declaration.cpp:808:41 [-Wcomma] possible misuse of comma operator here
layout/style/Declaration.cpp:812:42 [-Wcomma] possible misuse of comma operator here
layout/style/FontFaceSet.cpp:1118:60 [-Wcomma] possible misuse of comma operator here

MozReview-Commit-ID: 9tfcIsnnBwM
2017-04-09 21:11:45 -07:00
Astley Chen 6667d688ee Bug 1355752 - Remove B2G code from FrameLayerBuilder.cpp. r=mstange
MozReview-Commit-ID: CbMnZJldiUl
2017-04-20 13:16:43 +08:00
Matt Woodrow bf7a8c9a1c Bug 1351412 - Make the ContainerState AGR cache work even for non-async scrollable AGRs. r=mstange 2017-04-19 15:39:17 +12:00
Wes Kocher b402302a43 Backed out changeset f179621a517b (bug 1147538) for osx reftest failures a=backout 2017-04-13 23:59:49 -07:00
David Anderson 6daa7d681c Accumulate event region items into painted layers. (bug 1147538, r=mstange)
If a painted layer would previously only contain an event regions item, we
would not associate that item with any cached layer. As a result we would
generate a new, empty, invisible painted layer each frame. This is disastrous
on large layer trees as it can cause many needless repositions. Instead, we
make sure to accumulate the invisible item.
2017-04-13 20:27:52 -07:00
Iris Hsiao f58321a2b0 Backed out changeset 3910de7acce3 (bug 1349418) 2017-04-10 14:42:38 +08:00
Iris Hsiao 050cb0e666 Backed out changeset 006445ffcddd (bug 1351412) for reftest failing in async-scrolling 2017-04-10 14:42:31 +08:00
Matt Woodrow 76c2894583 Bug 1351412 - Make the ContainerState AGR cache work even for non-async scrollable AGRs. r=mstange 2017-04-10 17:02:03 +12:00
Markus Stange f510a8a0ad Bug 1349418 - Remove checkerboarding code and just use an opaque background color behind root scroll frames. r=kats 2017-04-10 17:01:53 +12:00
Thinker K.F. Li 3c245eff20 Bug 1343057 - Part 2: Disable AA for layers with animation in effect. r=mattwoodrow 2017-03-29 09:38:00 -04:00
Thinker K.F. Li 87e01cf384 Bug 1343057 - Part 1: Recycle painted layers with AA in mind. r=mattwoodrow 2017-03-29 09:37:00 -04:00
Markus Stange 7dc30cc736 Bug 1339897 - Rename PROFILER_LABEL_PRINTF to PROFILER_LABEL_DYNAMIC and make it really cheap. r=Ehsan,njn
Instead of copying and concatenating strings into an mDest buffer in
SamplerStackFramePrintfRAII, require callers to keep the string buffer alive
for the duration of the current scope, and store the pointer to the annotation
string in the ProfileEntry. During stackwalking, concatenate the label and the
annotation (separated by a space) and store the resulting string in the
profile buffer.

MozReview-Commit-ID: GEjcLrhhdvb
2017-03-22 19:37:33 -04:00
Thinker K.F. Li d387b522dc Bug 1331342 - Cache and reuse the result of GetDisplayPort. r=mattwoodrow 2017-03-04 10:18:00 -05:00
Kartikaya Gupta f441112c9f Merge m-c to graphics
MozReview-Commit-ID: AXRXwXgkOTv
2017-02-10 13:57:53 -05:00
Kartikaya Gupta e5d8f16e68 Merge m-c to graphics
MozReview-Commit-ID: EcjJhQuqDFI
2017-02-05 10:39:54 -05:00
Kartikaya Gupta 3e3b1b3f6f Merge m-c to graphics
MozReview-Commit-ID: uU8MPphFqj
2017-02-02 13:38:51 -05:00
Markus Stange c009597b91 Bug 1336519 - Don't try to detect scrolled clips using AGRs in non-APZ mode. r=mattwoodrow
Before bug 1298218, in this if branch with APZ enabled, itemClip was always
the display port clip for fixed backgrounds, even for fixed backgrounds on the
canvas frame. But after bug 1298218 we no longer clip canvas fixed backgrounds
to the display port, so itemClip is now the viewport clip. And that clip is
definitely not a scrolled clip, so we must not merge layers around it.

The better solution for this would be to remove this if branch completely and
fix up the scrolled clip layerization detection for the non-APZ case to also
use ASRs. That's tracked by bug 1336516.

MozReview-Commit-ID: 2F7hPrldUlq
2017-02-03 13:41:37 -05:00
Markus Stange 16fe7c24db Bug 1298218 - Add a workaround for root scroll frame container layer scrolling. r=tnikkel
Root frame containers really throw a wrench into the whole system.

MozReview-Commit-ID: 9066vWMYxxr
2017-01-27 17:38:55 +01:00
Kartikaya Gupta 2d075dbfbe Merge m-c to graphics
MozReview-Commit-ID: 5ovnMmSOiZX
2017-01-09 10:18:37 -05:00
Kartikaya Gupta 3050106083 Merge m-c to graphics
MozReview-Commit-ID: 6XqNGxF5EiQ
2016-12-23 10:14:44 -05:00
Kartikaya Gupta 17245d5f13 Merge m-c to graphics
MozReview-Commit-ID: KhxBqJbwxv8
2016-12-06 23:45:24 -05:00
Morris Tseng 876f0e708e Merge mozilla-central to graphics. 2016-11-28 10:46:02 +08:00
cku 5f0226d79a Bug 1329091 - Keep mask style value to determine whether cached mask layer is corrupt. r=mstange
MozReview-Commit-ID: J2CFFi5pN7H
2017-01-06 17:53:30 +08:00
Kartikaya Gupta a22dff19b1 Merge m-c to graphics
MozReview-Commit-ID: E9vVT9ZNSAJ
2016-11-22 10:21:45 -05:00
Ehsan Akhgari f2408219cd Bug 1318805 - Move the code for the Web Painting module to layout/painting; r=mattwoodrow
This will help make it clearer that this code lives in a different
module for contributors.
2016-11-21 20:01:15 -05:00
Markus Stange 64f44c1b7a Bug 1336530 - Re-enable Android tests that were disabled in bug 1298218 and disable the assertion. r=tnikkel
MozReview-Commit-ID: L7PnRvUkw5O
2017-02-03 14:55:51 -05:00
Matt Woodrow a7d9f0455c Bug 1319626 - Part 5: Minimize visible region for border layers. r=mstange 2016-11-24 18:11:30 +13:00
Carsten "Tomcat" Book 224b6097d8 Backed out changeset 5e4dbaca50ef (bug 1319626) 2016-11-24 17:02:24 +01:00
Matt Woodrow 75772e6352 Bug 1319626 - Part 5: Minimize visible region for border layers. r=mstange 2016-11-24 18:11:30 +13:00
Matt Woodrow a675eb4e5a Bug 1318156 - Add an option to minimize empty area in PaintedLayers. r=mstange 2016-11-24 18:11:30 +13:00