Commit Graph

29092 Commits

Author SHA1 Message Date
Milan Sreckovic
114ff1103a Bug 1432411: Wallpaper over the case where there is no Screen. r=jgilbert
MozReview-Commit-ID: ISeBw7qxGdH

--HG--
extra : rebase_source : b023754299b5e04883c6fa0d0eb4207f71315f90
2018-02-09 13:42:17 -05:00
Kartikaya Gupta
f6bd1624da Bug 1374166 - Use waitUntilApzStable to increase test robustness. r=botond
The important part here is that the test parent page
(test_bug1151663.html) waits for paints to complete before spawning the
helper window. Otherwise, the helper window might think it's done
painting (because it is) and start running the test even though its
layer tree has not been attached to the chrome layer tree. In such a
scenario reading the APZ test data produces an empty tree for the
content layers id and causes the test to fail.

This test was written before we had waitUntilApzStable so sprinkling some
of that into the test makes it more robust in general as well.

MozReview-Commit-ID: J8rqW6dcy23

--HG--
extra : rebase_source : f9e28bd15f355c88649ff1797b1f1205824bf815
2018-02-09 12:29:21 -05:00
Miko Mynttinen
a84d6e8626 Bug 1434243 - Part 4: Do not create unnecessary nsDisplayCompositorHitTestInfo items r=kats,mattwoodrow
MozReview-Commit-ID: CNXMMCFFBmc

--HG--
extra : rebase_source : 5c34cef710a5f18006485814a5d29e6a43216188
2018-02-05 18:39:52 +01:00
Miko Mynttinen
c13c744de6 Bug 1434243 - Part 2: Add nsDisplayCompositorHitTestInfo support to FrameLayerBuilder r=mattwoodrow
MozReview-Commit-ID: 5RdFJDyB6RN

--HG--
extra : rebase_source : 364404b8f12397235b27a34ebe4b4492fc350ad5
2018-01-30 15:10:23 +01:00
Tiberius Oros
677b0037d2 Merge inbound to mozilla-central. a=merge 2018-02-09 12:02:51 +02:00
Lee Salzman
a0d29145a5 Bug 1396637 - disable WR subpixel positioning with FreeType. r=jrmuizel
MozReview-Commit-ID: Hu3Q9yuveRw
2018-02-08 21:42:54 -05:00
Lee Salzman
a843f0909e Bug 1431637 - free qcms_transform r_clut. r=jrmuizel
MozReview-Commit-ID: DwbIhtuGvcA
2018-02-08 21:41:03 -05:00
Dzmitry Malyshau
d2d9759d7b Bug 1433932: Avoid crashing on failing to save a capture. r=nical,kats
MozReview-Commit-ID: ARj9ww2F3gx
2018-02-08 10:49:28 -05:00
Dzmitry Malyshau
5852b9f1d6 Bug 1436190: Fixed render frame notification in wake_up(). r=nical
MozReview-Commit-ID: JHBKpAh4YDD
2018-02-08 10:49:25 -05:00
Ciure Andrei
8dd2a49ca4 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-02-08 00:33:37 +02:00
Ciure Andrei
cda04ea11e Merge inbound to mozilla-central. a=merge 2018-02-08 00:05:57 +02:00
Andrew Osmond
34935cb2ff Bug 1388020. r=nical 2018-02-07 09:33:12 -05:00
sotaro
89aba04841 Bug 1435995 - Disable DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL usage r=nical 2018-02-07 22:21:35 +09:00
Andrew Osmond
5a683f0a80 Backed out changeset d078b56f0fa6 (bug 1388020) for OS X crashtest failures. r=backout 2018-02-06 22:18:29 -05:00
Andrew Osmond
210a94af4d Bug 1388020. r=nical 2018-02-06 20:14:17 -05:00
Kartikaya Gupta
b02074bd27 Bug 1436832 - Avoid unnecessary casting. r=sotaro
MozReview-Commit-ID: 2MoJv1Wg8g4

--HG--
extra : rebase_source : 01a54b1eb730d9f14dfffdc1b2f3eb3c321ee9d2
2018-02-08 17:11:45 -05:00
Kartikaya Gupta
d1e05bf7c3 Bug 1436832 - Remove unnecessary loop. r=sotaro
MozReview-Commit-ID: ehYAwXLecX

--HG--
extra : rebase_source : 66e0a6edd1550a82eab2bbeb74da23892e757396
2018-02-08 17:11:42 -05:00
Lee Salzman
59693fdaf9 Bug 1436265 - update ClearType usage in WebRenderLayerManager. r=jrmuizel
MozReview-Commit-ID: 1m2QQAKaI25
2018-02-07 15:48:25 -05:00
Lee Salzman
7cf35e807f Bug 1436375 - add RecordedScaledFontCreation event in DrawTargetRecording::FillGlyphs. r=jrmuizel
MozReview-Commit-ID: 780xX36HeYH
2018-02-07 15:48:23 -05:00
Martin Roinson
90bbf4505c Bug 1435143 - Properly unwrap Maybe<WrScrollId> for the root scroll frame. r=kats
When comparing a Maybe<WrScrollId> to another WrScrollId we need to properly
handle the case where Nothing() signifies the root scroll frame. This is
equivalent to calling scrollId.valueOr(FrameMetrics::NULL_SCROLL_ID), as was
done before WrScrolLId replaced ViewId in the WebRender ScrollingLayersHelper.
We also have DisplayListBuilder::TopmostScrollId always return a value instead
of a Maybe, since an empty clip stack means that the current scroll id is that
of the root scroll frame.

Previously Nothing() was not equivalent to WrScrollId { 0 }, which caused the
ScrollingLayersHelper to fill the mClipAndScroll value and push another
set of clip and scroll nodes onto the WebRender display list builder.

MozReview-Commit-ID: CeatZlRXtuI
2018-02-07 10:01:56 +01:00
Kartikaya Gupta
50f41ff36b Bug 1435248 - Fix function naming. r=nical
It looks like the call chain is called ScheduleComposite on the client
LayerManager API, but then for some reason the functions in the IPDL
bridges are called ForceComposite, and then they eventually call the
ScheduleComposition function on the CompositorVsyncScheduler. This is
silly, so I renamed the IPDL bridge functions to ScheduleComposite as
well to be consistent.

MozReview-Commit-ID: D7bWpASaEtb

--HG--
extra : rebase_source : ecb0494d9461bd4ada48bfb602e7b518f0601c1b
2018-02-02 08:57:35 -05:00
Kartikaya Gupta
cc5ad5010a Bug 1435248 - Drop unnecessary virtualization of function. r=nical
This function is not overridden, so there doesn't seem to be any value
in making it virtual.

MozReview-Commit-ID: 8K34xTGtBc7

--HG--
extra : rebase_source : c7ad229f4b4de1a1ed8b8f8e782a21082c4abb12
2018-02-02 08:57:35 -05:00
Kartikaya Gupta
f2f96f5b92 Bug 1435248 - Use a Maybe<TimeStamp> instead of a bool+TimeStamp. r=nical
Minor refactoring, no functional changes.

MozReview-Commit-ID: Ct8SBxrTz8Y

--HG--
extra : rebase_source : 22556c57ec50fefa23ff8aea18815afadda0c8fa
2018-02-02 08:57:35 -05:00
Gurzau Raul
476c3b3a55 Merge inbound to mozilla-central. a=merge 2018-02-06 23:53:56 +02:00
Bas Schouten
7f06948838 Bug 1425257: Introduce a global lock to protect the dependency graph between DrawTargets. r=lsalzman
This patch takes the safest route for securing modifications to the dependency graph for D2D DrawTargets. It's possible a slightly optimal approach is possible, however lock contention should be rare and I believe this is the safest and most upliftable approach.

MozReview-Commit-ID: HGfSdEp2U5N
2018-02-06 03:08:04 +01:00
Kartikaya Gupta
845b4048d1 Bug 1434723 - Update WR bindings for change in WR PR 2381. r=jrmuizel
MozReview-Commit-ID: ITMks4JKZd0

--HG--
extra : rebase_source : be744cb1c3115ab7bd40586b9554d8212c11468a
2018-02-06 10:32:53 -05:00
Kartikaya Gupta
2747b167d0 Bug 1434723 - Update webrender to commit 08e49649f1fc9cacff4e10ebc390babcea752236. r=jrmuizel
MozReview-Commit-ID: IoduYBMrWJk

--HG--
extra : rebase_source : 0a42653118ec2d8768235073a0509608b3605a98
2018-02-06 10:31:57 -05:00
Alexis Beingessner
8acb1d6f40 Bug 1362115 - turn on blob-images by default with webrender. r=kats
MozReview-Commit-ID: GH4Ukj01rJ5

--HG--
extra : rebase_source : 96b48cc87d31ee75b069d08f72fec259d87b957f
2018-02-01 14:00:26 -05:00
Alexis Beingessner
4d74abb6a1 Bug 1362115 - properly handle empty slices in FFI bindings. r=kats
MozReview-Commit-ID: 9Zw0RTbgsBL

--HG--
extra : rebase_source : fe44e912d0cf24e257bc31f42c2d263c70c666e8
2018-02-05 12:41:11 -05:00
Narcis Beleuzu
84cea84b12 Merge inbound to mozilla-central. a=merge 2018-02-06 11:54:42 +02:00
Margareta Eliza Balazs
9c4eafffee Backed out changeset 0c3400afa45f (bug 1425257) for failing R-e10s in slave/test/build/tests/reftest/tests/image/test/reftest/pngsuite-basic-n/basn0g01.png on a CLOSED TREE 2018-02-06 07:27:43 +02:00
Ryan Hunt
0b29c49678 Remove implicit fuzzy operator== from BaseMatrix (bug 1435406, r=mattwoodrow)
--HG--
extra : rebase_source : 2635f386b96644922a345cea3a8fca6e3614253f
extra : histedit_source : b7cc3424492f88cbd32f3f945c5af86ff43ca0d0
2018-02-02 15:14:08 -06:00
Bas Schouten
bf22a1874d Bug 1425257: Introduce a global lock to protect the dependency graph between DrawTargets. r=lsalzman
This patch takes the safest route for securing modifications to the dependency graph for D2D DrawTargets. It's possible a slightly optimal approach is possible, however lock contention should be rare and I believe this is the safest and most upliftable approach.

MozReview-Commit-ID: HGfSdEp2U5N
2018-02-06 03:08:04 +01:00
Daniel Holbert
73cea96890 Bug 1435297 part 2: (automated patch) Switch a bunch of C++ files in gfx to use our standard emacs/vim mode lines. r=jrmuizel
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py.
I ran it as follows:
  python /path/to/modeline.py --fix gfx/

This patch changes all affected files to use the exact C++ mode lines from the
Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

MozReview-Commit-ID: FsPNGjFkIFV

--HG--
extra : rebase_source : 7532d0478d0af75e346102105caf5b89631457aa
2018-02-02 12:07:36 -05:00
Daniel Holbert
4f69bf1ea0 Bug 1435297 part 1: Fix SharedSurfacesParent.cpp to use our standard emacs/vim mode lines. r=jrmuizel
This patch changes this file to use the exact C++ mode lines from the
Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

(The automated modeline.py script won't do this on its own for this one file. I
think that's because this file has the vim & emacs modelines in the reverse
order from the standard Mozilla syntax, and modeline.py is conservative and
won't change syntax that it doesn't immediately expect/understand.)

MozReview-Commit-ID: 7R1DUBEvFFh

--HG--
extra : rebase_source : eb802806375cf7d6f6fb0626220b1a510b375cdb
2018-02-02 12:07:33 -05:00
Kartikaya Gupta
42945c908e Bug 1435282 - Make SetTestSampleTime force a sync flush. r=sotaro
SetTestSampleTime is called from tests via the advanceTimeAndRefresh API
on DOMWindowUtils, and the expectation is that after it is done, the
time has been advanced and a composite has happened. So we need to
ensure that is the case with WebRender as well. This fixes the issue I
was seeing with test_group_hittest.html and makes it pass.

MozReview-Commit-ID: 86l9mTTwD2v

--HG--
extra : rebase_source : d2921fb0f9b09f4366fb516e4a6254a7f13f3e4e
2018-02-02 10:48:25 -05:00
Kartikaya Gupta
b2e6e6deb1 Bug 1435282 - Don't force the render transaction to happen immediately if we're doing an async flush. r=sotaro
This splits the FlushRendering function into sync and async versions
just for a bit more clarity. In the async version we don't want to set
the mForceRendering flag at all because we don't need to force a
rendering - if there is one already pending then that's good enough. And
anyway in practice the async version seems to only ever be invoked by
CompositorBridgeParent::SetTestSampleTime which I'll be changing in the
next patch.

MozReview-Commit-ID: 4cdU0U5B1pp

--HG--
extra : rebase_source : d7842844fca758d53121e3326d8da7fb7592ad8b
2018-02-02 10:48:25 -05:00
Kartikaya Gupta
cfcf1eb7b5 Bug 1435282 - Add a helper FlushPendingComposite function. r=sotaro
This extracts a code pattern that appears a couple of times in the code.
It occurs in CompositorBridgeParent as well but there's some extra stuff
involved there with the mOverrideComposeReadiness flag that I don't
understand so I'm leaving that as-is for now.

MozReview-Commit-ID: 2xqgaQZT4e1

--HG--
extra : rebase_source : 294727f146bbe5323a2cbdaa511dac5a4fc81571
2018-02-02 10:48:25 -05:00
Kartikaya Gupta
13ef8a8bea Bug 1435282 - Document that function arguments are always null. r=sotaro
MozReview-Commit-ID: HOu4fshHSuX

--HG--
extra : rebase_source : 01b7c59ce56ac9741b1b49dc3d6c1b9e96822d09
2018-02-02 10:48:25 -05:00
Emilio Cobos Álvarez
137e10a1bf Bug 1435618: followup: Add missing include to unbust windows. r=me
On a CLOSED TREE of course.

MozReview-Commit-ID: I5KQR0QUbli
2018-02-05 01:10:33 +01:00
Emilio Cobos Álvarez
50e8d02898 Bug 1435618: Don't leak a reference to the gfx info. r=kats
GetGfxInfo returns an already_AddRefed, you can't just forget about its return
value.

MozReview-Commit-ID: Ia6pyJN9njf

--HG--
extra : rebase_source : 73f7f1a6a8093d6f6555fa11f784bf912e1ab616
2018-02-04 17:40:40 +01:00
sotaro
962b688393 Bug 1435200 - Ensure to initialize GfxInfo on main thread r=nical 2018-02-03 16:25:53 +09:00
Jonathan Watt
79f77de593 Bug 1435286 - Stop recording draw events for reference DrawTargets returned from PrintTarget. r=bobowen
MozReview-Commit-ID: 1cE71hBCGx5
2018-01-18 12:45:18 +00:00
Kartikaya Gupta
96636477ac Bug 1435022 - Remove more unused stuff. r=sotaro
MozReview-Commit-ID: I5XEUT9dmPT

--HG--
extra : rebase_source : 3aa150d3a5605d8b8aa80106b0fdbe386ae704b6
2018-02-01 16:29:08 -05:00
Kartikaya Gupta
f56bc3a093 Bug 1435022 - Remove useless code (mExpectedComposeStartTime is never assigned). r=sotaro
MozReview-Commit-ID: LEgR6JFy0Ys

--HG--
extra : rebase_source : 6c46a9868c219ab655eee4d7674ffe86a4fe4a01
2018-02-01 16:29:07 -05:00
Kartikaya Gupta
42289b31e8 Bug 1435022 - Clean up GetLastComposeTime. r=sotaro
MozReview-Commit-ID: CEaz01FyjSs

--HG--
extra : rebase_source : 44c92477f6374764e084249bae74639c3706b5c0
2018-02-01 16:29:06 -05:00
Kartikaya Gupta
425b9f8598 Bug 1435022 - Document some methods. r=sotaro
MozReview-Commit-ID: CItOABKtjRl

--HG--
extra : rebase_source : 702981068a9176f98e66d7466d5ced742a2a9e6a
2018-02-01 16:28:53 -05:00
Kartikaya Gupta
7a2ef4343b Bug 1435022 - Make the Composite function private and document/clean it. r=sotaro
MozReview-Commit-ID: 3UQKwwC3Fav

--HG--
extra : rebase_source : 19737ed1c2ab40d7656257adbac10626ace1d9e7
2018-02-01 16:28:53 -05:00
Kartikaya Gupta
00c2abf4c9 Bug 1435022 - Inline the SetNeedsComposite function. r=sotaro
SetNeedsComposite is only ever called from one place on the compositor
thread, but it has a bunch of generic boilerplate to handle being called
from any thread. If we inline it we don't need the extra boilerplate and
it's much simpler to follow the code.

MozReview-Commit-ID: E1AcMh80KsH

--HG--
extra : rebase_source : 717fe101a3b23e30f8443110de5b6bf1a84cddda
2018-02-01 16:28:53 -05:00
Kartikaya Gupta
88a5174812 Bug 1435022 - Minor cleanup on the Destroy function. r=sotaro
MozReview-Commit-ID: EnE6JKKmhgy

--HG--
extra : rebase_source : 49e11327c77968e649ae28bee7e5a72bc2a6f98a
2018-02-01 16:28:53 -05:00