Commit Graph

28461 Commits

Author SHA1 Message Date
Gabriele Svelto
6fc7fdc557 Bug 1402519 - Remove MOZ_CRASHREPORTER directives from gfx; r=jrmuizel
MozReview-Commit-ID: 7S8AJ18cCx0

--HG--
extra : rebase_source : 5fb4dbbd0416adeaf1796845e808b053ed029de4
2017-10-10 15:11:07 +02:00
James Willcox
e07d13a4a6 Bug 1413500 - Disable video surface readback (for page thumbnail) on Android r=jgilbert
MozReview-Commit-ID: IDGl7OzBY82
2017-11-22 12:28:15 -06:00
Lee Salzman
894f5cc99e Bug 1224396 - Skia path allocation cleanups. r=msreckovic
MozReview-Commit-ID: GAf2vC1Fucv
2017-11-22 12:19:29 -05:00
Kartikaya Gupta
886598770a Bug 1418374 - Follow-up to ensure cbindgen generates the != operator for ImageKey. r=me and DONTBUILD
MozReview-Commit-ID: G2OygQ4wdSE
2017-11-22 09:16:57 -05:00
Jonathan Kew
dee38e2ed4 Bug 1419673 - Only check font paths against sandbox policy if read sandboxing is enabled. r=gcp 2017-11-22 11:10:20 +00:00
Ciure Andrei
c7cf019289 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-22 12:20:25 +02:00
Ethan Lin
e5621be884 Bug 1418374 - Discard blob image key when we create another new one. r=kats
MozReview-Commit-ID: FOa25SkYmdK

--HG--
extra : rebase_source : a04e8739df23c325d7026bfff714a9bddaea5b19
2017-11-21 11:49:42 +08:00
Milan Sreckovic
c9eb43789d Bug 1402041 - Move most of the GetSingleton() body to a separate function to make the inline size smaller. r=kats 2017-11-21 21:45:55 -05:00
sotaro
8238c315e7 Bug 1418877 - Fix key reuse check in AsyncImagePipelineManager::UpdateImageKeys() r=nical 2017-11-22 09:52:22 +09:00
Coroiu Cristina
9eb4f34b0a Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-22 01:50:20 +02:00
Coroiu Cristina
d6a2b15dbc Merge inbound to mozilla-central r=merge a=merge 2017-11-22 01:32:34 +02:00
Bas Schouten
15d9bc6da0 Bug 1417549: Execute IntoLuminanceSource during replay rather than synchronously. r=dvander
MozReview-Commit-ID: DWGQoTpUnyT
2017-11-21 16:41:08 +01:00
Jonathan Kew
70e564ccb4 Bug 1419274 - Protect against divide-by-zero in nsFontMetrics::GetMaxStringLength when font size is zero. r=milan 2017-11-21 15:22:05 +00:00
Jonathan Kew
09faef79f5 Bug 1418724 - part 2 - Force reflow of all content when locale prefs change, so that we can pick up modifications to the preferred ordering of CJK fonts without requiring restart or page reload. r=m_kato 2017-11-21 11:02:20 +00:00
Jonathan Kew
6ac9fda68b Bug 1418724 - part 1 - Improve handling of default font prefs for CJK languages, to recognize a potential ordered list of preferred locales from the OS, not just a single selected locale. r=m_kato 2017-11-21 11:01:46 +00:00
KuoE0
65de3f260a Bug 1419247 - Allow Stringify() to support nsSize. r=mtseng
MozReview-Commit-ID: 5OU6Db5z29S

--HG--
extra : rebase_source : 6cebd66f1cd0ca248e18a5f81cb63347d00c9e6a
2017-11-20 17:39:38 +08:00
Tim Huang
f4abe5782a Bug 1417741 - Add support of Atmoic<> for Preferences::Add*VarCache(). r=baku,njn
MozReview-Commit-ID: 9aeLvgWdZxy

--HG--
extra : rebase_source : b6130610ad8f80257022cb6e103addfe58b96af2
2017-11-16 11:02:50 +08:00
Daosheng Mu
204ca9c9df Bug 1415762 - Cancel VRListener task when CompositorVsyncScheduler is going to destroy; r=dvander
MozReview-Commit-ID: CB5JrDGZTu1

--HG--
extra : rebase_source : 4a6f65f4aaf2c11f2dad1a471f0cb219470f1dbe
2017-11-13 11:33:33 +08:00
Ethan Lin
a661b32865 Bug 1418869 - Do not try to share the fallback images. r=aosmond
The flag of force update is only for fallback items. Fallback items can't share the images with other items.
So I replace 'aForceUpdate' with 'aFallback' and remove some unnecessary checks.

MozReview-Commit-ID: Dcu95FZXlUz

--HG--
extra : rebase_source : 1ec96e0b5d39cc5760b4b5490c5ca9ccbc1933c6
2017-11-20 10:36:14 +08:00
James Willcox
436c2828a9 Bug 1416015 - Ensure SurfaceTexture desctruction happens correctly r=jnicol
MozReview-Commit-ID: I4X1jQQC7ry
2017-11-21 12:43:31 -06:00
Miko Mynttinen
8f00af8953 Bug 1415485 - Make the pref layout.display-list.retain live again r=mattwoodrow
MozReview-Commit-ID: 6QFc4Sq3WiC

--HG--
extra : rebase_source : 268c2959d38e955d1af9ab39fdb8cce0146788e3
extra : intermediate-source : 7ee9657574a2ee223b6184d1657803a0d382be59
extra : source : 558439637eba09eaae8a653ffc77d5830b16ff42
2017-11-09 16:10:21 +01:00
Daosheng Mu
395b4fcfac Bug 1418879 - Refine dom/vr and gfx/vr to fit with static-analysis; r=kip
MozReview-Commit-ID: K1r5NgQuuPK

--HG--
extra : rebase_source : 23a7d8d1ed9d1f6caa6a160afd969d21a69b5d6e
2017-11-20 12:00:31 +08:00
Ryan Hunt
a7d27ab55d Revert to using EnsureBackBufferIfFrontBuffer (bug 1416921, r=bas)
This commit reverts DoubleBufferedContentClient to creating a back buffer
if there is an existing front buffer. This reverts back to a sequence of a
finalize frame, unrotate, and initialize new back buffer. When we are
not async painting we do each buffer operation immediately. If we are
async painting, then we collect all of the buffer operations and perform
them on the paint thread.

Note on locking: The destination for buffer copies must always be opened
with the async write flag, and the source must be unlocked.

MozReview-Commit-ID: Gu4EcblY7Sg

--HG--
extra : rebase_source : ddbd85202aaa1e79ab56c76a055561f0d37d775a
2017-11-17 01:37:01 -05:00
Lee Salzman
001e79ef65 Bug 1416542 - lock access to the blob image font data table. r=nical
MozReview-Commit-ID: 30dwLt74L38
2017-11-20 11:34:36 -05:00
Nicolas Silva
50104c26e5 Bug 1377595 - Don't clip native themed item images to avoid over invalidation. r=jrmuizel 2017-11-20 10:28:13 +01:00
Sebastian Hengst
c633ffa4c4 Backed out changeset bdab19ff2fef (bug 1415485) for letting web platform tests in /css/CSS2/backgrounds/ frequently fail. r=backout a=backout 2017-11-19 15:05:47 +02:00
Brindusan Cristian
f0a7488730 Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-18 12:12:23 +02:00
Sebastian Hengst
c9214daa09 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-18 11:58:58 +02:00
sotaro
c2bdac32a6 Bug 1418035 - Fix worng decision of sending DidComposite r=nical 2017-11-18 08:56:40 +09:00
Noemi Erli
c7026c5a77 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
--HG--
rename : devtools/client/responsive.html/components/DprSelector.js => devtools/client/responsive.html/components/DevicePixelRatioSelector.js
rename : third_party/python/pyasn1/test/__init__.py => third_party/python/pyasn1/pyasn1/codec/native/__init__.py
rename : third_party/python/pyasn1/test/__init__.py => third_party/python/pyasn1/tests/__init__.py
rename : third_party/python/pyasn1/test/__init__.py => third_party/python/pyasn1/tests/codec/__init__.py
rename : third_party/python/pyasn1/test/__init__.py => third_party/python/pyasn1/tests/codec/ber/__init__.py
rename : third_party/python/pyasn1/test/__init__.py => third_party/python/pyasn1/tests/codec/cer/__init__.py
rename : third_party/python/pyasn1/test/__init__.py => third_party/python/pyasn1/tests/codec/der/__init__.py
rename : third_party/python/pyasn1/test/__init__.py => third_party/python/pyasn1/tests/codec/native/__init__.py
rename : third_party/python/pyasn1/test/__init__.py => third_party/python/pyasn1/tests/compat/__init__.py
rename : third_party/python/pyasn1/test/__init__.py => third_party/python/pyasn1/tests/type/__init__.py
extra : rebase_source : d9b683c2142cb0edada8891c1c3539fd2f3593ee
2017-11-18 00:33:17 +02:00
Noemi Erli
d96f41a437 Merge inbound to mozilla-central r=merge a=merge 2017-11-18 00:01:46 +02:00
Kartikaya Gupta
81e67cd608 Bug 1417519 - Hook up APZ to use the hit-testing API. r=botond,mstange
This adds the code that APZ needs to use the WR hit-testing API. For now
(if the pref is enabled) it just does the hit-test and compares the
result to the regular hit-test, printing out discrepancies. It also
doesn't yet get the scrollbar result.

MozReview-Commit-ID: 3pjYSWDGeDr

--HG--
extra : rebase_source : 9766fe3e77dd85f130ce155041cec7c0daae67ec
2017-11-17 20:28:44 -05:00
Kartikaya Gupta
ce6a99a6e8 Bug 1417519 - Add a mechanism for APZ to get the WebRenderAPI instance. r=botond
MozReview-Commit-ID: FhdQhKIfQbw

--HG--
extra : rebase_source : 13c61233da0cb0ce4ed0d7072ac43d53509b222c
2017-11-17 10:54:24 -05:00
Kartikaya Gupta
6946f16436 Bug 1417519 - Don't allow things to get raw pointers to WebRenderAPI. r=sotaro
It seems like a footgun to expose raw pointers to WebRenderAPI which is
a refcounted object. Let's only expose it via refcounting pointers.

MozReview-Commit-ID: AKmTZg2V99r

--HG--
extra : rebase_source : 805f13d56a64bafbcdf3bf4266eec47c70856564
2017-11-17 10:54:24 -05:00
Kartikaya Gupta
9d9fb92aed Bug 1417519 - Log layers id as a hex value. r=botond
These days (at least with webrender enabled), the layers id is created
by mashing together two uint32 values into the uint64. Printing it as in
base 10 produces some large number near the 32-bit boundary, and it's
much more legible/easier to compare when printed in hex.

MozReview-Commit-ID: JsGhqyLtDBv

--HG--
extra : rebase_source : ed60d26d8223d968f37e8d933e60b1ee6552d1e9
2017-11-17 10:54:23 -05:00
Miko Mynttinen
a677051b03 Bug 1415485 - Make the pref layout.display-list.retain live again r=mattwoodrow
MozReview-Commit-ID: 6QFc4Sq3WiC

--HG--
extra : rebase_source : 8ccd535dbc4443cac3571d748490e64e91b9b816
extra : intermediate-source : 7ee9657574a2ee223b6184d1657803a0d382be59
extra : source : 558439637eba09eaae8a653ffc77d5830b16ff42
2017-11-09 16:10:21 +01:00
Jonathan Kew
e264fbefb1 Bug 1416795 - Implement synthetic-oblique font rendering by applying a transform at gfxFont::Draw time, rather than setting it on the cairo font matrix. r=jrmuizel 2017-11-17 10:54:21 +00:00
Jonathan Kew
35d7befd30 Bug 1416762 - Avoid using the LastResort font on macOS for glyph fallback -- prefer to draw hexboxes for unsupported characters. r=jrmuizel 2017-11-17 10:54:19 +00:00
Ciure Andrei
92d28bd8f2 Merge inbound to mozilla-central r=merge a=merge 2017-11-17 11:59:03 +02:00
Kartikaya Gupta
f00ba5afd5 Bug 1389149 - Add a new display item to carry the compositor hit-test info to WR. r=mstange
This also adds a flag to the nsDisplayListBuilder to better control
the creation of these items.

MozReview-Commit-ID: BbeRGDjd2ie

--HG--
extra : rebase_source : ec36114d3c7eefffcf9612fc2da1aaf1353c35d8
2017-11-15 11:39:45 -05:00
Kartikaya Gupta
a02e29e13b Bug 1389149 - Add WR bindings for setting hit-test info and doing hit-tests. r=mstange
This exposes some functions on wr::DisplayListBuilder to set hit-test
info and to do hit-tests.

The mechanism to set hit-test info is made a little more generic than is
actually used in this patchset, because doing it this way allows for
more optimization possibilities.
Specifically, the API allows setting some hit-testing state which is then
applied to all display items that are created until that state is
updated or cleared. An alternative would be to specify the hit-testing
state explicitly when creating particular display items; however doing
that would force the call sites that create the display items to compute
or obtain the hit-testing state, which would make the code less
encapsulated and harder to refactor/optimize.

MozReview-Commit-ID: EJoCFv83iu8

--HG--
extra : rebase_source : d2a117a52144f76dcc312de2a4047298e78135cb
2017-11-15 11:39:44 -05:00
Kartikaya Gupta
26f0373ad0 Bug 1389149 - Extract the logic from nsDisplayLayerEventRegions::AddFrame into a more reusable form. r=mstange
This introduces a enum bitset type that encapsulates some of the
interesting properties that frames have that make it interesting for
hit-testing in the compositor. This type is designed so it can be sent
directly to webrender and gotten back in the hit-test.

MozReview-Commit-ID: GCxV7ZaoJd1

--HG--
extra : rebase_source : a9cc5ecfc7c5baeab2f6e08cd2ee2c2a7756e20c
2017-11-15 11:39:44 -05:00
Julian Seward
5c81253f01 Bug 1415494 - Uninitialised value use in mozilla::layers::CompositorManagerChild::IsInitialized. r=aosmond.
--HG--
extra : rebase_source : 5879cf17e81c25a5fe343c834e5c1eeb6693a0cf
2017-11-16 11:31:51 +01:00
Gurzau Raul
6dcee027d7 Merge inbound to mozilla-central r=merge a=merge 2017-11-16 12:04:45 +02:00
sotaro
222b1d574f Bug 1411472 - Add support of PersistentBufferProviderShared r=nical 2017-11-16 14:47:26 +09:00
sotaro
da9b8d1a30 Bug 1417306 - Fix leaking pipelines of Tabs r=nical 2017-11-16 09:47:55 +09:00
Ryan Hunt
ab27b063e3 Remove layers.omtp.force-sync preference (bug 1416941, r=dvander)
This commit removes the `layers.omtp.force-sync` preference and replaces
it with a preprocessor define that is commented out. This commit also
changes the behavior of force-sync so that it also does synchronization
with CompositorBridgeChild like normal OMTP. This simplifies the code
and makes using a preprocessor define easier.

MozReview-Commit-ID: 6RfuFTFBdMh

--HG--
extra : rebase_source : 0778a3087324b9e87f44587efbb49c71edf47f23
2017-11-14 14:05:55 -05:00
James Willcox
f0f93b7d2c Bug 1413500 - Use GLSL 100 for blitting on ES r=jgilbert
MozReview-Commit-ID: KlSRfeP7PVi
2017-11-17 15:11:27 -06:00
Nicholas Nethercote
f553c82da0 Bug 1416638 - Add a PrefValueKind arg to Preferences::Get*(), and remove Preferences::GetDefault*(). r=glandium
MozReview-Commit-ID: LgnZAf1pAl1

--HG--
extra : rebase_source : 8ba7c4bfb331f70fd41c2ae1d428e4cb9058d069
2017-11-14 19:06:01 +11:00
Kevin Chen
9f39405d6a Bug 1417373 - Add initialize setting to texture Cb's property description; r=jya
MozReview-Commit-ID: DzIx5vdIE48

--HG--
extra : rebase_source : cfae6b5b7ef31bf541d5c5c59f1f6ee38bcf5c01
2017-11-15 18:13:12 +08:00