Граф коммитов

29055 Коммитов

Автор SHA1 Сообщение Дата
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
Kartikaya Gupta b90ff6039c Bug 1435022 - Make a couple of functions private. r=sotaro
MozReview-Commit-ID: G6qC9TbIChQ

--HG--
extra : rebase_source : 53df609ead6de35621f923388d062f95042807d2
2018-02-01 16:28:52 -05:00
Kartikaya Gupta 2a7ee5280c Bug 1435022 - Inline a one-line function with a confusing name. r=sotaro
This function is exposed as public but only ever called from two places,
both of which are inside the class. It's confusing to have it as a
separate function because it just makes it harder to trace through the
code.

MozReview-Commit-ID: BC7mvOc9wo

--HG--
extra : rebase_source : 56e2c69e158685c106e01e78e31d2df67ea6128c
2018-02-01 16:28:52 -05:00
Kartikaya Gupta 28f8d7953e Bug 1435022 - Remove the ResumeComposition function from the vsync scheduler. r=sotaro
Having a resume function without a corresponding pause function seems
silly. And the implementation of the function is the same as doing a
force-compose, which is what the call site is intending to do. So we can
just remove this function and do a force-compose instead.

MozReview-Commit-ID: LimMYQhAuEk

--HG--
extra : rebase_source : f10e43c4c4a6f67162b1b473de6c23d8dbdc7a8f
2018-02-01 16:28:50 -05:00
Kartikaya Gupta 4a13ef1ec7 Bug 1435022 - Make ScheduleTask private and drop a useless argument. r=sotaro
MozReview-Commit-ID: 4bRjv1L7DLF

--HG--
extra : rebase_source : ccd8eea10a677681aed24c45ba69cf3eee93d657
2018-02-01 16:28:50 -05:00
Kartikaya Gupta a4734bc1f0 Bug 1435022 - Inline OnForceComposeToTarget and clarify the comment. r=sotaro
This function has only one call site and there's no need to make it
public.

MozReview-Commit-ID: 5o7B9KMyVqy

--HG--
extra : rebase_source : 38a915c19d48784ce086ebecd66b9f872ae03327
2018-02-01 16:28:49 -05:00
Florian Quèze 2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Csoregi Natalia 5a9ee59e75 Merge inbound to mozilla-central. a=merge 2018-02-01 20:11:41 +02:00
Jonathan Kew c4f709831b Bug 1434697 - patch 2 - Implement variation font support in the Android (gfxFT2Fonts) backend. r=lsalzman 2018-01-31 17:07:49 +00:00
Jonathan Kew 5b9b689254 Bug 1434699 - Don't use dlsym() to look up FreeType functions when building with MOZ_TREE_FREETYPE. r=lsalzman 2018-02-01 15:28:09 +00:00
Ryan Hunt 43118373ed Enable parallel painting on OSX and cap the amount of paint workers to 4. (bug 1430793, r=milan)
--HG--
extra : rebase_source : 9d5c853f84b160819540cc062fb84f4bea8fcb02
2018-01-25 14:12:39 -06:00
Martin Stransky bdd7d89f6c Bug 1434574 - Build wayland with EGL OpenGL backend, r=glandium
MozReview-Commit-ID: LpGmUVOYqRI

--HG--
extra : rebase_source : f26825fedcf66b6bdb2bcb32093b1d4451fe60e7
2018-01-31 13:13:50 +01:00
Jan Steffens 62442dc97a Bug 1424648 - Provide proper face index to FreeType FontDescriptorOutput; r=lsalzman
OpenType font collections (*.ttc) contain multiple faces in a single file,
identified via index. When creating a font descriptor for a FreeType or
Fontconfig font, we mistakenly set the index to zero, always.

This bug became visible when layout and WebRender would disagree on the face in
use, rendering text with the metrics from the proper face but the outlines of
another. Unless, of course, the selected face was the first (or only) in the
font file.

MozReview-Commit-ID: 73qcPOD0HIr

--HG--
extra : rebase_source : b5784ff547bae99186d646dbb92b31660beb3970
2018-01-31 21:42:18 +01:00
Cameron McCormack 2cea1ba7c1 Bug 1430014 - Part 6: #ifdef out a bit more animation-related code. r=hiro
MozReview-Commit-ID: B9TaVJFak26

--HG--
extra : source : 820eed2682b6a6cda892d091ee037ff1eeacd69f
2018-02-01 15:04:04 +11:00
Cameron McCormack d02e54b79b Bug 1430014 - Part 5: Stop building old style system classes when MOZ_OLD_STYLE is not defined. r=xidorn
MozReview-Commit-ID: CIHyPdF7Exl

--HG--
extra : source : 78a2fc781eead47af3923efcde58569c5d882ab1
2018-02-01 15:04:04 +11:00
Alexis Beingessner 291824030e Bug 1432309 - ensure the GL context is current when updating wr. r=sotaro
To avoid future issues, this is done by combining the Render and Update methods
into a single call. As a minor side-effect, timing in the parent method now
includes the time to run update.

MozReview-Commit-ID: GJ0l049eFRj

--HG--
extra : rebase_source : f9b4ee6f34bc45d87b3df40e5a25f3bfb2ec8068
2018-01-31 21:34:43 -05:00
Martin Roinson e82c2f1d5c Bug 1434288 - Update gecko for API changes in WR PR 2315. r=kats
MozReview-Commit-ID: 7NfZMXOPaDY

--HG--
extra : rebase_source : 782784b5f01fccd7c22286c6fa7e6ee16bf20be0
2018-01-22 19:29:06 +01:00
Kartikaya Gupta e8fb82d672 Bug 1434288 - Update webrender to commit e772c3cb8ea0a35e6477e9dc8dd2144e2de87b56. r=jrmuizel
MozReview-Commit-ID: 4VM5EAtkjNt

--HG--
extra : rebase_source : 5c1b5da5a99fe9405f9810030b8e3422ac82e519
2018-01-31 16:03:25 -05:00
sotaro ae34263b07 Bug 1419293 - Create SwapChain with DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL if possible in ANGLE r=jgilbert 2018-02-01 21:39:31 +09:00
Brindusan Cristian 7b43ef6086 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-01 12:19:39 +02:00
sotaro a5acc968ad Bug 1434524 - Add more check to D3D11Checks::DoesNV12Work() r=mattwoodrow 2018-02-01 18:00:09 +09:00
Kartikaya Gupta bb553f0d58 Bug 1433579 - Allow recursively holding the APZ tree lock. r=botond
MozReview-Commit-ID: DzLgqb2wMN9

--HG--
extra : rebase_source : 6d7ba7bf5d574fefdd9e17a2c54ff2a48671701f
2018-01-31 12:00:19 -05:00
Bogdan Tara 1f15df5f24 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-01-31 12:11:39 +02:00
Bogdan Tara 1a6614b8b5 Merge inbound to mozilla-central. a=merge 2018-01-31 12:00:14 +02:00
Dzmitry Malyshau 04332d008f Bug 1434410: Move the WebRender revision to a separate file and include it in captures. r=kats
MozReview-Commit-ID: 9ZgALwny1p2
2018-01-30 23:24:55 -05:00
Andrea Marchesini 26352bfee1 Bug 1432963 - Fixing workers headers - part 17 - no LIBS=[workers] in moz.build files, r=smaug 2018-01-31 08:25:30 +01:00
Andrea Marchesini 2c7c69af24 Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug 2018-01-31 08:24:08 +01:00
Andrea Marchesini 063723a1f0 Bug 1432963 - Fixing workers headers - part 13 - WorkerHolder without workers namespace, r=smaug 2018-01-31 08:23:44 +01:00
Andrea Marchesini c4b257cdc6 Bug 1432963 - Fixing workers headers - part 12 - WorkerRunnable without workers namespace, r=smaug 2018-01-31 08:22:56 +01:00
arthur.iakab c4dd80eca3 Merge mozilla-central to autoland 2018-01-31 00:41:58 +02:00
Sebastian Hengst 732cb1d98b merge mozilla-inbound to mozilla-central. r=merge a=merge 2018-01-31 00:22:27 +02:00
Kartikaya Gupta 8db17de82f Bug 1421380 - Enable gfx.webrender.hit-test by default. r=jrmuizel
This causes some mochitests to fail.

MozReview-Commit-ID: J2AjM0qKVE5

--HG--
extra : rebase_source : 21102068e9eca65f56bafb76cb623dbdbf0bfb3a
2018-01-29 16:35:10 -05:00
Kartikaya Gupta 7f809749df Bug 1421380 - Don't do a composite of WR rendered frames unless a composite is requested. r=nical
We sometimes render frames for hit-testing consistency requirements but
those frames don't need compositing. This goes with webrender PR 2358.

MozReview-Commit-ID: D6DRF040D5a

--HG--
extra : rebase_source : fd5dadc35a6f6a54b385f535d4ae9c6e34f3a779
2018-01-29 16:35:10 -05:00
Jim Chen 7d4fb3fff9 Bug 1428182 - 10. Add <stdlib.h> include in pixman patch; r=lsalzman
pixman-8888-over-565.patch added a call to free(), which is apparently
not included by the other headers when using the new NDK headers.

MozReview-Commit-ID: 9fAuSano36N

--HG--
extra : rebase_source : de9a1f1c4676df9ed724ae7264ca1170b77aac52
2018-01-30 14:08:24 -05:00