Nicolas Silva
21ca5648d3
Bug 1088300 - Remove mCompositableClient from TileClient, pass the compositable and layer by reference to remove the possibility of unexpectedly storing null pointers. r=milan
2016-08-30 13:48:20 +02:00
Sebastian Hengst
0aa16b8142
Backed out changeset a8ff54e28b15 (bug 1088300) for unused variable error in SingleTiledContentClient.h. r=backout on a CLOSED TREE
2016-08-30 14:06:14 +02:00
Nicolas Silva
f96d58b170
Bug 1088300 - Remove mCompositableClient from TileClient, pass the compositable and layer by reference to remove the possibility of unexpectedly storing null pointers. r=milan
2016-08-30 13:48:20 +02:00
Ryan Hunt
aa229473b7
Bug 1294588 - Remove UseProgressivePaint from gfxPlatform and use gfxPrefs instead. r=dvander
...
MozReview-Commit-ID: 1A9bFY2HS2z
--HG--
extra : rebase_source : 3347b9920be525f24c8d627260947b136ac36930
2016-08-11 14:21:17 -07:00
David Anderson
456bcd0248
Move TileSize from gfxPlatform to gfxVars. (bug 1288259 part 3, r=jrmuizel)
...
--HG--
extra : rebase_source : 5a48bb72b10c8d9c1c5c96b8d2076a6d33cabc24
2016-08-04 11:33:43 -07:00
Jamie Nicol
f19a9e2f30
Bug 1263083 - Use single-tile layer when less than half the tile size in either dimension; r=mstange
...
MozReview-Commit-ID: 8yYXVl36AHK
--HG--
extra : transplant_source : %81%F9%DB%1D%F2%B9%A2vY%5D%04m%A0%1A%B7%EB%92%224P
2016-06-24 12:52:17 +01:00
James Willcox
e05e837ec0
Bug 1178376 - Allow progressive painting when low-precision tiles are disabled r=BenWa
2016-04-26 09:49:12 -05:00
David Anderson
f3dc22db8d
Rename PCompositor to PCompositorBridge. (bug 1258479 part 2, r=mattwoodrow)
...
--HG--
rename : gfx/layers/ipc/CompositorChild.cpp => gfx/layers/ipc/CompositorBridgeChild.cpp
rename : gfx/layers/ipc/CompositorChild.h => gfx/layers/ipc/CompositorBridgeChild.h
rename : gfx/layers/ipc/CompositorParent.cpp => gfx/layers/ipc/CompositorBridgeParent.cpp
rename : gfx/layers/ipc/CompositorParent.h => gfx/layers/ipc/CompositorBridgeParent.h
2016-03-22 14:08:38 -04:00
Jamie Nicol
b53bc9fd1c
Bug 1255448 - Call ClientMultiTiledLayerBuffer::PaintThebes even when region to paint is empty. r=mattwoodrow
...
Remove early return for empty invalid regions from
ClientTiledPaintedLayer::RenderHighPrecision so that
ClientMultiTiledLayerBuffer::PaintThebes is called even when the region
to paint is empty. This ensures that the tile buffer will free unused
tiles in cases where no new painting is required but the valid region
has shrunk.
Add replacement early returns into ClientMultiTiledLayerBuffer to avoid
as much needless work as possible while still recalculating which tiles
are valid.
MozReview-Commit-ID: C86Pi7lRjjs
--HG--
extra : transplant_source : %F0%96H%DAn4%FE%A6%3EPf%B7%AF3%95%D6%F9o%D9/
2016-03-10 15:01:15 +00:00
Benoit Girard
4af2ba2a93
Bug 1255907 - Fix unification build issues in APZ & Layers. r=kats
...
MozReview-Commit-ID: 4tUYEJRgpUF
--HG--
extra : rebase_source : 8c0f99bca01886f0cee802f8490b2a9ff9572eaa
2016-03-14 11:39:12 -04:00
Jamie Nicol
bdba733905
Bug 1250517 - Differentiate between no critical display port and empty critical display port in ClientTiledPaintedLayer; r=kats
...
Currently the logic in ClientTiledPaintedLayer treats an empty critical
display port to mean that there is no critical display port, i.e. that
the entire visible region should be painted. However, the critical
displayport should be, and is, empty if either the display port or
composition bounds are entirely outwith the layer's bounds. We want to
render none of the layer in this case, not all of it.
Change BasicTiledLayerPaintData::mCriticalDisplayPort's type to a
Maybe<LayerIntRect>, and differentiate between it being not set and it
being an empty rect.
MozReview-Commit-ID: Gi1iZOQcOVL
--HG--
extra : transplant_source : %D5M%3A%D2lN%08%3Dnhy%F3%92%A6%03%FB%85%E2%D4%AB
2016-02-23 15:38:29 +00:00
Kartikaya Gupta
6de82d82fb
Bug 1243589 - Use SingleTiledContentClient even for scrollable layers if the layer is smaller than a single tile. r=mattwoodrow
...
MozReview-Commit-ID: 6eYFmoOVL6b
2016-02-12 08:29:25 -05:00
Wes Kocher
5d6f82ee76
Backed out changeset 19c631cc41c8 (bug 1243589) for test_transformed_scrolling_repaints.html failures on OS X
...
--HG--
extra : commitid : 8PbwCNrV2to
2016-02-11 16:34:28 -08:00
Kartikaya Gupta
9b986bd61e
Bug 1243589 - Use SingleTiledContentClient even for scrollable layers if the layer is smaller than a single tile. r=mattwoodrow
...
MozReview-Commit-ID: LHIrrtFfRgm
2016-02-11 16:49:04 -05:00
Nicolas Silva
f02f7a61e4
Bug 1221056 - Make the destroy messages for PTexture and PCompositable part of the current transaction when applicable. r=sotaro
2016-01-07 11:17:40 +01:00
Johan Lorenzo
8612fa1f8c
Backout Bug 1221056 - make the destroy messages for PTexture and PCompositable part of the current transaction when applicable. r=sotaro
...
For breaking Firefox OS boot startup (see bug 1237197)
--HG--
extra : commitid : Eoiq2mNqfw9
2016-01-06 14:59:35 +01:00
Nicolas Silva
4d9fc4395b
Bug 1221056 - make the destroy messages for PTexture and PCompositable part of the current transaction when applicable. r=sotaro
2016-01-05 14:03:26 +01:00
Kartikaya Gupta
7df84c3309
Bug 1228602 - Ensure that we pick up the presShell resolution from the layer if there isn't a metrics. r=botond
...
--HG--
extra : commitid : BXooH3Gj0wh
2015-12-09 17:29:03 -05:00
Botond Ballo
ae1bdc7602
Bug 1069417 - Remove the explicit template argument of TransformTo() and related functions. r=kats
...
In this process, TransformTo() and UntransformTo() are renamed TransformedBy()
and UntransformBy() so calls to them continue to read sensibly.
--HG--
extra : rebase_source : a2a4b36514cc54533757c075fcf2c53ab3020939
extra : source : 826da3dc12baeb84b32be50f4b2c0591ca73ab37
2015-11-30 20:06:45 -05:00
Botond Ballo
70b749edea
Bug 1069417 - Modify TransformTo() and related functions to use typed matrices. r=kats
...
Call sites (all in APZ and related code) were modified accordingly. Some of
these modifications involved changing some matrices stored in APZ to be typed.
--HG--
extra : rebase_source : 6f1cf33a5550987097fcd386c77765d046f5ec34
extra : source : 8f66bdc8e6e86f482a06b9c7a160740026cf24b4
2015-11-30 20:14:31 -05:00
Markus Stange
9bdb4a34ae
Bug 1198021 - When the ContentClient of a ClientTiledPaintedLayer changes, don't destroy the old content client until after the layer transaction has been sent. r=nical
...
--HG--
extra : commitid : EU0rpj0WygC
extra : amend_source : 4c68b28a13dbf4220c31880bb504284c84a3b98d
2015-11-27 16:09:18 +01:00
Sunny Sidhu
cfa8942015
Bug 1220873 - Make Layer::mVisibleRegion a LayerIntRegion. r=botond
...
--HG--
extra : source : dc46048f7a9e9cc008c97e2d9e0a100944743055
extra : amend_source : 63783bc076e5969ebacdc8c74f9b5194a1891d9e
2015-11-29 02:07:55 -05:00
Botond Ballo
a592a77364
Bug 1222661 - Replace ToUntyped(obj) calls with obj.ToUnknown*(). r=nical
...
--HG--
extra : rebase_source : 1cab46638599d8c4e6183c42a6fa9d41702392cb
extra : source : cabc28a2200b9b4e5e137d331ee5b86b3c09f065
2015-11-06 22:13:40 -05:00
James Willcox
026a03ab87
Bug 1201541 - Add a pref for disabling single tile layers r=mattwoodrow
2015-09-28 09:37:01 -05:00
James Willcox
66893d0e7a
Bug 1201541 - Use SingleTiledContentClient for non-scrollable layers on Android r=mattwoodrow
2015-09-28 09:36:58 -05:00
Markus Stange
a1f6ba9da5
Bug 1207590 - Don't use SingleTiledContentClient for layers that are larger than the maximum texture size. r=mattwoodrow
...
--HG--
extra : commitid : AqImLRfZYFc
2015-09-23 12:26:56 +02:00
Markus Stange
db5e3a34d4
Back out changeset 17a4283a8b6f (bug 1195400) because of build bustage.
...
--HG--
extra : commitid : BhzRGfWfYrb
extra : rebase_source : 97c401dd963301cdcdf9551c7c96fcd7b56636c8
2015-09-22 12:51:48 +02:00
Markus Stange
57ca0b8c39
Bug 1195400 - Don't use SingleTiledContentClient for layers that are larger than the maximum texture size. r=mattwoodrow
...
--HG--
extra : commitid : 3YaqNF6sPAT
extra : rebase_source : af64e3bd795a34d63dea4a5c89014156c8838d13
extra : histedit_source : c0ee79ad404abf3c0270c40ae63f178e04e7a8ab
2015-09-20 18:34:04 +02:00
Kevin Wern
368ce48f75
Bug 1173521 - Properly handle unapplying 3D projective transforms to rectangles in APZ code. r=botond
...
The untransformation is done using the newly added UntransformTo() functions
which call Matrix4x4::ProjectRectBounds(), which returns an empty rectangle
if the result is not at least partially on the positive side of the w = 0 plane.
UntransformTo() returnis the transformed rectangle if it's not empty, and
Nothing() otherwise, making callers check for this case.
The patch also adds some assertions to places where we apply transforms we
know should be 2D (and thus didn't switch to use UntransformTo()), checking
that the transforms are in fact 2D.
--HG--
extra : rebase_source : bbc226f4135c2cf229c4e00dfb017a6c9c078391
extra : source : c2732f62a3b9a5246801aa000ce572ee07f53481
2015-08-28 12:00:29 -04:00
Matt Woodrow
71c406b6e9
Bug 1180326 - Part 6: Use SingleTiledContentClient for non-scrollable layers on b2g and OSX. r=jrmuizel
...
--HG--
extra : rebase_source : 82e5be89cedaac9c4203886b595da960bfad1f58
2015-07-29 12:03:01 -04:00
Matt Woodrow
acf197a1b6
Bug 1180326 - Part 4: Add new content client. r=jrmuizel
...
--HG--
extra : rebase_source : 320abc2284fbfa2b1b7d7b8cd3ad29fb89c6b591
2015-07-29 12:02:40 -04:00
Matt Woodrow
2570217fc4
Bug 1180326 - Part 1: Abstract parts of the client side tiling that we need. r=jrmuizel
...
--HG--
extra : rebase_source : d7536e637c61418a919b714c2bb494aefd6b825d
2015-07-29 12:01:11 -04:00
Jamie Nicol
5044fbd3c9
Bug 1176077 - Only recompute PaintedLayer item visibility when display list has changed. r=mattwoodrow
...
FrameLayerManager::RecomputeItemsVisibility() was being called on every
call to FrameLayerBuilder::DrawPaintedLayer(), each time for the region
to be painted by that paint call. This is inefficient when progressive
paint is enabled. Change it so that we compute the visibility of all the
layer's items within the total region to be painted, but only on the
first paint after the display list has been modified.
2015-07-21 09:19:25 +01:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Timothy Nikkel
f24dd15190
Bug 1179298. ClientTiledPaintedLayer should allow empty transactions to succeed if it doesn't need to draw anything. r=mattwoodrow
...
ClientTiledPaintedLayer::RenderLayer was returning false immediately if there was no callback. It should check if it actually has to draw anything first, and then if it needs to paint it can return false if there is no callback.
2015-07-02 12:50:15 -05:00
David Anderson
55a0f8ee25
Bug 1148582 - Add mask layers to FrameMetrics for ancestor scroll frame clips. r=mattwoodrow
...
--HG--
extra : rebase_source : 9bf7a73b14e40972b3a5824b2f1344b7770ab789
extra : source : 745366787bcae737c0aec908554db2a3ec288908
2015-06-21 12:27:31 -04:00
Markus Stange
f1b62506d9
Back out bug 1148582 for static analysis bustage.
2015-07-01 01:20:59 -04:00
David Anderson
c29b4c6dfa
Bug 1148582 - Add mask layers to FrameMetrics for ancestor scroll frame clips. r=mattwoodrow
2015-06-21 12:27:31 -04:00
Paul Rouget
b81203c055
Bug 1172537 - Make the warning: "Tiled PaintedLayer with no scrollable container ancestor" occur only on actual b2g phones. r=nical
...
--HG--
extra : rebase_source : 6179fa6c40b05cf52cea9b2b8256a4842d035b5b
2015-06-09 20:33:00 -04:00
David Anderson
b2eb29a9c5
Use widgets for APZ checks, rather than gfxPrefs. (bug 1162064, r=kats,mstange)
2015-06-04 16:51:10 -04:00
Kartikaya Gupta
e237a366e0
Bug 1160566 - Make FrameMetrics.mCompositionBounds private and add a getter/setter for it. r=botond
2015-05-07 14:44:03 -04:00
Nicolas Silva
cfff5e52c5
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
Markus Stange
177fc2a470
Bug 1152838 - Correctly inflate valid regions to tile boundaries. r=mattwoodrow
...
--HG--
extra : rebase_source : a4a8f3b93e294f5c691eb1583582f7759858dd2b
2015-04-09 12:07:16 -04:00
Kartikaya Gupta
ed3b911ea5
Bug 1149461 - Disable progressive drawing unless the compositor is actively scrolling a tiled layer. r=nical
2015-04-07 10:43:28 -04:00
Kartikaya Gupta
c7ad8fb6d0
Bug 1128042 - Don't round critical displayport out as it should already be tile aligned and rounding error can increase tile usage. r=botond
2015-03-20 14:26:51 -04:00
Kartikaya Gupta
7f502f2f3e
Bug 1036967 - Followup to fix debug logging. r=me
2015-03-20 06:58:04 -04:00
Kartikaya Gupta
08bb2324c7
Bug 1139033 - Don't schedule an unnecessary repeat transaction when doing a non-progressive paint. r=nical
2015-03-05 06:04:03 -05:00
Kartikaya Gupta
f3637b988c
Bug 1137203 - Cleanup to ditch the fast-path code entirely and just prevent progressive drawing in the equivalent scenarios. r=BenWa
2015-02-26 17:45:37 -05:00
Kartikaya Gupta
80cdf96476
Bug 1137203 - Ignore the critical displayport when a layer is subject to OMTA relative to the scrolling ancestor. r=BenWa
2015-02-26 17:45:37 -05:00
Ryan VanderMeulen
3b9c7e5d7f
Backed out changesets ddf965a90c07 and 305e676779f8 (bug 1137203) for being the likely cause of bug 1137952.
...
CLOSED TREE
2015-03-02 12:34:39 -05:00