Commit Graph

29675 Commits

Author SHA1 Message Date
Kartikaya Gupta
7a77234e86 Bug 1451469 - Add the plumbing to hook up the sampler callbacks. r=nical
MozReview-Commit-ID: GhCKVFXKfjX

--HG--
extra : rebase_source : 77d4cbf542f939c77322a505beb8af6c3ad16602
2018-04-16 17:39:14 -04:00
Kartikaya Gupta
6186818885 Bug 1451469 - Implement the guts of the WR sampler thread registration. r=botond
This lets the APZSampler know which thread is the actual sampler thread.
This is only really used for the thread assertions, but might be useful
for debugging and such as well.

Note that since this behaviour is not dependent on any prefs (unlike the
updater thread, which is only the scene builder thread when the async
scene building pref is enabled), we don't hook it up to the rust code
just yet; that will happen in the last patch.

MozReview-Commit-ID: DrrJOyFA65D

--HG--
extra : rebase_source : 61e8e75ae16f95fe5ce95fa42a3dff501979ab9e
2018-04-16 17:39:14 -04:00
Kartikaya Gupta
ee76c6b413 Bug 1451469 - Maintain a map from WrWindowId to APZSampler. r=botond
MozReview-Commit-ID: Bfkfs6FTOQ6

--HG--
extra : rebase_source : 0ca8d3b9452b9ece36eadf2bd2b1bb1c0783756d
2018-04-16 17:39:13 -04:00
Coroiu Cristina
374b919ce6 Merge inbound to mozilla-central a=merge 2018-04-18 13:44:22 +03:00
Jeff Muizelaar
fdf30042e6 Bug 1454659. Remove remaining assert for empty blob images.
When we removed the empty blob image assert in bug 1451458. We ended
up just moving it to this assert. We'll drop this one as well.
2018-04-17 20:37:07 -04:00
Csoregi Natalia
cc8f2c09f1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-18 01:39:35 +03:00
Sebastian Hengst
a16fce83ee Backed out changeset 2efe54944e8c (bug 1453801) for huge AWSY regression with WebRender (bug 1454346) as well as frequent crashes (bug 1454112, bug 1454114). a=backout 2018-04-18 01:08:20 +03:00
Csoregi Natalia
12a8bddd95 Merge inbound to mozilla-central. a=merge 2018-04-18 00:52:25 +03:00
Andrew Osmond
69c328a7f6 Backed out changeset 2efe54944e8c (bug 1453801) for linux64-qr awsy failures. r=aosmond 2018-04-17 17:57:39 -04:00
Csoregi Natalia
cbe4d558de Backed out changeset 51fdcc41076f (bug 1454659) for browser-chrome leaks. CLOSED TREE 2018-04-17 22:58:43 +03:00
Kartikaya Gupta
abcf2e229e Bug 1454485 - Stop passing around the scroll view and container direction since it's already in the scrollbar data. r=botond
MozReview-Commit-ID: 3t4uLBQZSAi
2018-04-17 15:04:34 -04:00
Kartikaya Gupta
878b4beba1 Bug 1454485 - Remove redundant fields from WebRenderLayerScrollData and ensure the ScrollbarData is always correctly populated instead. r=botond
MozReview-Commit-ID: JQ9ooeiEIox
2018-04-17 15:04:25 -04:00
Kartikaya Gupta
07005742df Bug 1453688 - Update webrender to commit 5bcb7f46c6931633fd20813c46cd69af164effe7. r=jrmuizel
MozReview-Commit-ID: B71quJ8o6RG

--HG--
extra : rebase_source : dabea094dfa8be86c3fa062a1345cf85f2ca8707
2018-04-17 08:22:52 -04:00
Jeff Muizelaar
c0b250b894 Bug 1454659. Remove remaining assert for empty blob images.
When we removed the empty blob image assert in bug 1451458. We ended
up just moving it to this assert. We'll drop this one as well.
2018-04-17 11:10:33 -04:00
Csoregi Natalia
b31fdd70ba Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-18 01:37:31 +03:00
Hiroyuki Ikezoe
e53f74cb86 Bug 1454550 - Call AnimationHelper::SampleAnimationForEachNode only for layers that have animations. r=kats
This is slightly efficient since we don't need to call
GetBaseAnimationStyle() or we do skip allocating animation data for such case.

MozReview-Commit-ID: BYFNwZsZ1oE

--HG--
extra : rebase_source : 441d7431bd444f1513a32d4da3c206c7df34ed94
2018-04-17 13:20:33 +09:00
Miko Mynttinen
474ef54378 Bug 1452800 - Trigger a layout flush in forceLayerTreeToCompositor. r=kats
This ensures we don't take the early-exit codepath introduced by the
PAINT_IDENTICAL_DISPLAY_LIST check, which breaks the behaviour desired
by forceLayerTreeToCompositor.

MozReview-Commit-ID: ECe6d0ZHZzt

--HG--
extra : rebase_source : 48d3f7d9b5df81ba165c0e52d1a7b78909c58774
2018-04-17 14:22:42 -04:00
Kartikaya Gupta
f245e247b3 Bug 1454430 - Ensure the ClearTree task runs before we shut down webrender. r=nical
MozReview-Commit-ID: BCc0zuZvktj

--HG--
extra : rebase_source : e35e41a33943a7e2d5eae869ace62802040a0d7a
2018-04-16 14:21:04 -04:00
Brindusan Cristian
667fae7dc8 Merge inbound to mozilla-central. a=merge 2018-04-17 12:53:33 +03:00
Jeff Muizelaar
5153b29720 Bug 1454507. Avoid asserting that we don't end up with an empty result. r=mstange
This adds a crash test that would previously trigger the assert.

--HG--
extra : rebase_source : f167a85bf219cf3eac1192be05c297fc5e383072
2018-04-16 18:00:35 -04:00
shindli
805cb19c1d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-17 01:45:58 +03:00
Jonathan Kew
7b924dade9 Bug 1436048 part 2 - Store FontWeight as a fixed-point value to support fractional font-weight values. r=jwatt 2018-04-16 20:26:08 +01:00
Jeff Muizelaar
a39255aea0 Bug 1454429. Remove broken paint flashing support.
Doing paint flashing here doesn't work with the merging.
We'll need to do the flashing when we actually paint the blob.

MozReview-Commit-ID: KPujW43upQp
2018-04-16 13:44:58 -04:00
Ryan Hunt
a59e2dd09a Bug 1438551 - Remove unused mPaintedRegion from TiledLayerBuffer. r=nical
This appears to be unused, and is just needlessly calculating something.

MozReview-Commit-ID: Jpm9sBwJBfT

--HG--
extra : rebase_source : 0a743c6ed0f79b92715d2f902e9a607ccad0d1ea
2018-04-12 15:40:21 -05:00
Ryan Hunt
d1e87928b5 Bug 1438551 - Add a pref for enabling tiles when we are using skia with parallel painting. r=nical
MozReview-Commit-ID: JVIFr2wUWHD

--HG--
extra : rebase_source : 67cf74011993a971d66d9a7350171f0190ec08cd
2018-04-10 11:29:14 -05:00
Ryan Hunt
4f2811fcda Bug 1438551 - Don't discard the back buffer when we reuse the front buffer. r=nical
It can happen often where we reuse the front buffer for a long paint, and then
the next frame we see that it is still locked, and need to allocate a new buffer
from the texture pool. If this happens we don't need to repaint the new buffer
because the old buffer is still around, but we do need to copy it over and
upload it to texture sources. It seems better to just hold onto the back buffer
and let it accumulate more invalid regions.

MozReview-Commit-ID: 2DQjwAX7ZmM

--HG--
extra : rebase_source : 3077952d3ef56deea6af68492f71bb114d96d84a
2018-04-10 09:27:09 -05:00
Ryan Hunt
75d0a20b5a Bug 1438551 - When creating a back buffer, only paint in the visible rect. r=nical
When we are creating a new back buffer we mark the whole region as being
invalid. This will cause us to paint extra in certain circumstances where
the visible region is a subset of the tile space.

MozReview-Commit-ID: BayRu0mV39O

--HG--
extra : rebase_source : b7eb40408faca5fc3fbc3e53263de7d262af35d5
2018-04-06 14:36:39 -05:00
Ryan Hunt
2108992f64 Bug 1438551 - When resizing single tile buffers be sure we don't mark the copied region as invalidated. r=nical
We discard and copy over data from the old tile when we resize a single tiled content client. For some reason
we were not removing that region we successfully copied from the invalid region we would then set on the tile.
This would cause us to do more work on following frames. For some other reason we were removing that region
from the region we'd clear for non-opaque tiles. This commit changes it so we remove it from both.

MozReview-Commit-ID: DIu1Y3jzV7Z

--HG--
extra : rebase_source : 9c06482798823cf9ecb9be4937c6af9dd1ece6f2
2018-03-26 18:15:30 -05:00
Jonathan Kew
94238d9823 Bug 1452973 - Update NS_FONT_STRETCH_* constants to values based on the percentage definitions in css fonts 4. r=jwatt 2018-04-16 10:00:57 +01:00
Miko Mynttinen
0b8872867b Bug 1393367 - Change MOZ_ASSERT to MOZ_RELEASE_ASSERT. r=mstange, r=fbraun 2018-04-12 14:18:03 +02:00
Andreea Pavel
01f50bc3d8 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-14 00:56:30 +03:00
Jonathan Watt
1e7f76576a Bug 1436048 part 1 - Use a user defined type for font weight everywhere. r=jfkthame,emilio
--HG--
extra : rebase_source : 2e267ff99de6f52484e34ac15c39e5ca8b473394
2018-04-13 20:34:37 +01:00
Jonathan Watt
cd28f53640 Bug 1453924 - Remove bogus multiplication by 100 in GDIFontEntry::TestCharacterMap. r=jfkthame
--HG--
extra : rebase_source : 0556f0f51557dc87e458c1d48d142ee679d98403
2018-04-11 21:15:48 +01:00
Markus Stange
686443f2a7 Bug 1444432 - Implement screenshot grabbing in LayerManagerComposite. r=jrmuizel
MozReview-Commit-ID: 4BNKNwCACUB

--HG--
extra : rebase_source : dc11246a3190f82b121b521e1324790792a5e405
2018-04-12 15:31:12 -04:00
Andrew Osmond
c0369e1c33 Bug 1453801 - Remove unused consumer tracking code from SourceSurfaceSharedDataWrapper. r=jrmuizel 2018-04-13 15:24:32 -04:00
Andrew Osmond
f17c1700f1 Bug 1452467 - Make native font resource memory allocations fallible. r=lsalzman 2018-04-13 13:33:15 -04:00
Markus Stange
0e34941ec1 Bug 1444432 - Add Compositor::GetWindowRenderTarget() and implement it for CompositorOGL. r=jrmuizel
MozReview-Commit-ID: d0vBM6g2pM

--HG--
extra : rebase_source : d16ad9a58c04c146cd4ef2d95d7eb2ec2cff1593
2018-03-28 14:44:17 -04:00
Markus Stange
072ffa8136 Bug 1444432 - Create Compositor::BlitRenderTarget and implement it for CompositorOGL. r=jrmuizel
MozReview-Commit-ID: Jz3bawvz1pv

--HG--
extra : rebase_source : 1b3e332aa2a312f6acc77b057bc466afc813990e
2018-04-12 15:28:26 -04:00
Markus Stange
0e1a4b9b8c Bug 1444432 - Create a Compositor abstraction called AsyncReadbackBuffer and implement it for CompositorOGL. r=jrmuizel
MozReview-Commit-ID: Jx1RFFoKypz

--HG--
extra : rebase_source : f7851e97ebc5d1cbc50896d3d02c028d26343f59
2018-03-28 15:46:38 -04:00
Markus Stange
7981f6dc01 Bug 1444432 - Add missing gfx:: qualifiers in TextureClientOGL.cpp. r=jrmuizel
MozReview-Commit-ID: BT33ief5qkt

--HG--
extra : rebase_source : 7709a9d125198880bf7765ef5a4d32ac6ca9e305
2018-04-13 00:13:41 -04:00
Markus Stange
2d583272e7 Bug 1444432 - Add an #include "X11UndefineNone.h" to GLXLibrary.h after the X11 header include, so that TiledContentClient.h doesn't suffer from a redefined None. r=jrmuizel
MozReview-Commit-ID: 8PpFuax0XHb

--HG--
extra : rebase_source : aed14abaf59f7cb4278e034ea1b7720a6ea985b6
2018-04-12 23:37:29 -04:00
Markus Stange
2d93796161 Bug 1444430 - Add a ProfilerScreenshots class which can be used to submit DataSourceSurfaces to the profiler. r=jrmuizel
ProfilerScreenshots encodes these surfaces to JPG data URLs, and submits them
as profiler markers. The encoding is done on a separate thread.

MozReview-Commit-ID: 7CKDBqUsLny

--HG--
extra : rebase_source : 45b608544b4ddf8502302cf974ca4e8b306de64e
2018-03-26 23:08:33 -04:00
Markus Stange
98c6ff684d Bug 1444430 - Extend the API of gfxUtils::EncodeSourceSurface to support encoding into a string. r=jrmuizel
MozReview-Commit-ID: KxXkOmat9RU

--HG--
extra : rebase_source : e8eed1a6330fcad42c78c8d8115ff41fc7e6a5f0
2018-04-12 15:20:14 -04:00
Markus Stange
f4bfb59a34 Bug 1444430 - Remove a copy in EncodeSourceSurfaceInternal. r=jrmuizel
MozReview-Commit-ID: 5iNEd4RKIyn

--HG--
extra : rebase_source : 2ae9ad954be266c652fec3caa3b604027f09c9b0
2018-03-26 23:04:04 -04:00
Sebastian Hengst
0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Kartikaya Gupta
cfd585d234 Bug 1453364 - Update scrollbar transforms separately from OMTA transforms. r=nical
Although they still happen in the same transaction, they are done in two
separate frame messages. This results in better encapsulated code on the
C++ side since we don't have to pass around an array of properties, and
will simplify future changes to update these properties at render time
rather than at GenerateFrame time.

MozReview-Commit-ID: 9qUkHX7gmD1

--HG--
extra : rebase_source : 15a319ba270eb1783815c514ae05c6a72e323dac
2018-04-11 15:28:00 -04:00
abeingessner
7bc00186cb Bug 1434630 - use proper logging framework instead of println. r=kats
This makes webrender much less verbose in release builds, and also
feeds all printing through a single managed point. This is intended
to reduce the amount of crashes we get from stdout becoming unavailable
on users' machines.
2018-04-13 10:58:06 -04:00
Andrew Osmond
74807c64ae Backed out changeset e5336e51b77f (bug 1452467) for Windows static analysis build bustage on a CLOSED TREE. r=aosmond 2018-04-13 10:14:12 -04:00
Andrew Osmond
117614d724 Bug 1452467 - Make native font resource memory allocations fallible. r=lsalzman 2018-04-13 09:41:29 -04:00
Nicholas Nethercote
51f2b494ea Bug 1448222 - Remove MediaPrefs. r=jya
This patch converts all the prefs in MediaPrefs to the new StaticPrefs system.

Note that the "media.wmf.skip-blacklist" pref was present in both MediaPrefs
and gfxPrefs. The copy in MediaPrefs was never used; this explains why this
patch does not add an entry for it to StaticPrefList.h.

Note also that the patch removes themedia.rust.mp4parser pref, because it's
unused.

MozReview-Commit-ID: IfHP37NbIjY

--HG--
extra : rebase_source : df84ea813b7c366d7be663c696891325610149c8
2018-03-20 09:48:56 +11:00