Commit Graph

25224 Commits

Author SHA1 Message Date
Kan-Ru Chen
8ba424eabb Bug 1194751 - Part 6. Use mozilla::widget::ScreenManager in content process. r=mconley
This is the most important part of the patch series. It removes the
PScreenManager protocol and use ScreenManager directly in the content
processes.

Initial and subsequent updates are sent via PContent::RefreshScreens.
struct ScreenDetails are kept to serialize Screen over IPC.

nsIScreenManager::ScreenForNativeWidget is removed because
nsIWidget::GetWidgetScreen can replace it. nsIScreen::GetId is removed
because it's not useful for the more general Screen class.

MozReview-Commit-ID: 5dJO3isgBuQ

--HG--
extra : rebase_source : 06aa4e4fd56e2b2af1e7483aee7c0cc7f35bdb97
2017-03-09 19:30:26 +08:00
Kan-Ru Chen
824adc9354 Bug 1194751 - Part 5. Implement ScreenHelperGTK and delete old nsScreenManagerGtk/nsScreenGtk. r=karlt
ScreenHelperGTK is the platform dependent part of the original
nsScreenManagerGtk and nsScreenGtk. It registers monitors-changed
event listener from gtk and pushes updates to ScreenManager. See patch
part 4. for how ScreenManager works.

MozReview-Commit-ID: KBo7ZLFTjM3

--HG--
rename : widget/gtk/nsScreenManagerGtk.cpp => widget/gtk/ScreenHelperGTK.cpp
rename : widget/gtk/nsScreenManagerGtk.h => widget/gtk/ScreenHelperGTK.h
extra : rebase_source : 5607e31b62c928934cc45df7b2212428fbfd79c1
2017-03-09 19:29:44 +08:00
Mats Palmgren
2feec4025d Bug 1333482 part 5 - [css-ui] Enable '-moz-appearance' support for some tests. r=dholbert
* * *
[mq]: sssssssss

MozReview-Commit-ID: 4wgnjld1rDt
2017-03-23 22:11:23 -07:00
Mats Palmgren
eeffa0c3eb Bug 1333482 part 1 - [css-ui] Introduce the 'appearance: auto | none' property. r=dholbert
MozReview-Commit-ID: 3itCDTKuYQ9
2017-03-23 22:11:17 -07:00
Kartikaya Gupta
b6566b9f0c Bug 1349949 - Turn some advanced layers prefs into override prefs. r=mchang
This allows us to remove the #ifdef MOZ_ENABLE_WEBRENDER for the advanced layers
prefs from all.js. As additional advanced layers are turned on for webrender (or
non-webrender) they can be converted into override prefs without affecting the
call sites.

MozReview-Commit-ID: F9tMc23ow8A

--HG--
extra : rebase_source : 2244cb000711496ce5b7f1b50ef0314e1c312d94
2017-03-23 16:29:54 -04:00
Kartikaya Gupta
7a77ecd448 Bug 1349949 - Add the notion of an "override pref" to gfxPrefs.h. r=mchang
An override pref is one that is stored as a tri-state int32_t pref in the gecko
preferences system (with values 0, 1, or 2), but is exposed as a bool via the
gfxPrefs API. The int32_t value defaults to 2, which means that gfxPrefs will
take the value from somewhere else (which can be customized per-pref). If the
int32_t value stores 0 or 1, those correspond to force-disabled and force-enabled
respectively, and the gfxPrefs API will return false or true.

This allows the default value of a pref to be conditional upon other features
(e.g. webrender being enabled or not), but still allows the user or code to
override it into the enabled or disabled state.

MozReview-Commit-ID: KaihVyHrw2q

--HG--
extra : rebase_source : 053adc51a982f48e56035f453801d5987884a052
2017-03-23 16:29:52 -04:00
Daosheng Mu
62781e3b7d Bug 1299937 - Part 6: Handle Stop vibrating when the window defoucses; r=qdot
MozReview-Commit-ID: Kvd40jnSPvK

--HG--
extra : rebase_source : f9ce4c68fd07376b8e18cbab08718c49d6fed455
2017-03-07 10:17:57 +08:00
Daosheng Mu
c1d89a986e Bug 1299937 - Part 4: Handling vibrate haptic promise in VRManager; r=qdot
MozReview-Commit-ID: 3KZ8MNx3Dnq

--HG--
extra : rebase_source : 1b11f7948da7477e31f7448878a6d5874ba69087
2017-02-02 14:59:44 +08:00
Daosheng Mu
3905da3aea Bug 1299937 - Part 3: Implement haptic pulse for OpenVR controller; r=kip,qdot
MozReview-Commit-ID: TUIbJpyng4

--HG--
extra : rebase_source : e449c85d0e8f9a64a63929d1211dbca3fed8a4b6
2017-02-02 14:57:58 +08:00
Daosheng Mu
a5e10d768b Bug 1349414 - Allow updating VR controllers at the non-presenting mode; r=kip
MozReview-Commit-ID: CA6YxLxySDi

--HG--
extra : rebase_source : 058b8aebdf8d13e22d2c25bdf037094ca1e52f4b
2017-03-22 09:58:06 +08:00
KuoE0
48061f481f Bug 1348900 - Remove NewTimerCallback as it has been replaced by NewNamedTimerCallback. r=kats
MozReview-Commit-ID: 9Ap24GZ8M4

--HG--
extra : rebase_source : 5c42ee2240f297ed6865bce6922ad55b444b5ef4
2017-03-21 16:46:23 +08:00
Wes Kocher
1087616d0e Merge autoland to m-c a=merge
MozReview-Commit-ID: 2zUGojOEVNi
2017-03-23 16:05:15 -07:00
Kartikaya Gupta
0fee7584e7 Merge m-c to graphics
MozReview-Commit-ID: 1rTRVEHequ9
2017-03-23 10:01:31 -04:00
Carsten "Tomcat" Book
492970c342 merge mozilla-inbound to mozilla-central a=merge 2017-03-23 13:44:09 +01:00
Carsten "Tomcat" Book
9b6d088496 merge autoland to mozilla-central a=merge
--HG--
rename : browser/components/preferences/in-content/tests/browser_advanced_siteData.js => browser/components/preferences/in-content-old/tests/browser_advanced_siteData.js
rename : dom/media/mediasink/DecodedAudioDataSink.cpp => dom/media/mediasink/AudioSink.cpp
2017-03-23 13:42:40 +01:00
sotaro
249f8f9784 Bug 1349232 - Add destroyed check to CompositorVsyncScheduler::ScheduleComposition() r=kats
WebRenderBridgeParent works independently, if root WebRenderBridgeParent is destroyed
without CompositorBridgeParent::StopAndClearResources() call,
non-root WebRenderBridgeParent are still active and could trigger ScheduleComposition().
The change prevents to trigger ScheduleComposition() in this case.
2017-03-23 15:07:02 +09:00
sotaro
6499e3b68e Bug 1349465 - Ensure we don't enable WebRender if the GPU process is disabled r=kats
gfxWindowsPlatform overrides InitAcceleration, and the override calls
InitGPUProcessSupport, which may disable the GPU process. Therefore, in
order to capture this scenario, we need to initialize WebRender after
the subclass implementation has run, rather than at the end of the base
class implementation, which is before InitGPUProcessSupport has run.
2017-03-23 11:26:24 +09:00
Wes Kocher
b31e9e6a39 Merge inbound to central, a=merge
MozReview-Commit-ID: EQ7w1Gld1K2
2017-03-22 17:10:01 -07:00
Mason Chang
b8ac3c92fc Bug 1348913 - Update webrender to 0794911f97cae92496fca992d7430da696fa24eb. r=kats 2017-03-22 14:26:52 -07:00
Lee Salzman
aa429c08b7 Bug 1347262 - fix Skia's round_asymmetric_to_int to bias all sides. r=jrmuizel
MozReview-Commit-ID: AMDi6YF0zn
2017-03-22 15:03:03 -04:00
Jeff Muizelaar
da3210576b Bug 1119128. Eliminate gfxPangoFontGroup and gfxFontconfigUtils. r=lsalzman 2017-03-22 14:58:19 -04:00
Jeff Muizelaar
49eb5ba0b6 Bug 1285533. Remove non-fontconfig platform fontlist codepath. r=lsalzman
This has been disabled for two years. It's time for it to die.
2017-03-22 14:58:19 -04:00
Lee Salzman
baebc83432 Bug 1347632 - make RecordedSourceSurfaceCreation fallible. r=tobytailor
MozReview-Commit-ID: G4x3zTluGb4
2017-03-22 14:57:25 -04:00
Kartikaya Gupta
e0d4c1bfb3 Bug 1347811 - Fix build bustage due to unified builds and missing include. r=bustage
MozReview-Commit-ID: KHDOBrRqhVU
2017-03-22 11:10:52 -04:00
Kartikaya Gupta
9608ac4946 Merge m-c to graphics
MozReview-Commit-ID: Ci50iHfzKbA
2017-03-22 09:55:38 -04:00
Carsten "Tomcat" Book
62f6c37109 merge mozilla-inbound to mozilla-central a=merge 2017-03-22 14:26:27 +01:00
sotaro
cc4d383fff Bug 1347811 - Share WebRenderCompositableHolder between WebRenderBridgeParent r=nical 2017-03-22 10:27:38 +09:00
Carsten "Tomcat" Book
534f3aebc6 Merge mozilla-central to mozilla-inbound 2017-03-22 16:13:03 +01:00
Kartikaya Gupta
7fc02188d8 Merge m-c to graphics
MozReview-Commit-ID: AxmKwI9dnre
2017-03-21 09:21:34 -04:00
Andrea Marchesini
1fd1bc3935 Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot
--HG--
rename : caps/nsNullPrincipal.cpp => caps/NullPrincipal.cpp
rename : caps/nsNullPrincipal.h => caps/NullPrincipal.h
rename : caps/nsNullPrincipalURI.cpp => caps/NullPrincipalURI.cpp
rename : caps/nsNullPrincipalURI.h => caps/NullPrincipalURI.h
2017-03-22 11:38:40 +01:00
sotaro
8d50f9ae87 Bug 1348209 - Make wr_renderer_readback() as to handle both GL and GLES r=kats 2017-03-21 11:27:27 +09:00
Wes Kocher
4f5262444c Merge inbound to central, a=merge
MozReview-Commit-ID: 2omKclRg40c
2017-03-20 18:19:52 -07:00
Petr Cerny
89ce732573 Bug 1292534 - Patch lexical parser files generated by flex. r=jgilbert
--HG--
extra : rebase_source : 75f659604b0dfbebe38e2d75912f00a171576439
2017-03-20 18:20:19 -04:00
Kartikaya Gupta
f3f86c130e Bug 1346856 - Update webrender to dab674d09a51ff5253da0797d129bf29b25896e5. r=jrmuizel 2017-03-20 13:41:23 -04:00
KuoE0
399d6c086f Bug 1348221 - Implement NewNamedTimerCallback to create named timer callback. r=kats
MozReview-Commit-ID: IcEVkfB3puW

--HG--
extra : rebase_source : 45e3f28325d5e6da41fb65688d518170eb5764bb
2017-03-21 00:38:11 +08:00
Sotaro Ikeda
ece294bef8 Bug 1325911 - Update Gleam to v0.4. r=kats
MozReview-Commit-ID: 6QghwNrEC9V
2017-03-20 12:10:40 -04:00
Kartikaya Gupta
0a0a696241 Merge m-c to graphics
MozReview-Commit-ID: 2CbNs260zlf
2017-03-20 10:07:29 -04:00
Carsten "Tomcat" Book
d61e0b9ced merge mozilla-inbound to mozilla-central a=merge 2017-03-20 13:10:48 +01:00
Ethan Lin
c6f971413b Bug 1343450 - Keep gfxPrefs sorted alphabetically. r=me 2017-03-20 14:52:28 +08:00
Ethan Lin
58f9109c72 Bug 1343450 - Convert nsDisplayCanvasBackgroundColor to WebRenderDisplayItemLayer. r=mattwoodrow 2017-03-20 14:41:55 +08:00
Mason Chang
f47b17cdff Bug 1347727. Detect box shadow outer cases that WR doesn't support and don't enable a layer for it in WR. r=rhunt 2017-03-17 15:06:57 -07:00
Kartikaya Gupta
99947c2a87 Merge m-c to graphics
MozReview-Commit-ID: 3MU0IxcKSwo
2017-03-17 15:37:52 -04:00
Kartikaya Gupta
0485af4853 Merge m-c to graphics
MozReview-Commit-ID: 5m04vXUTlsy
2017-03-17 11:03:02 -04:00
Carsten "Tomcat" Book
3e0a5441c6 Merge mozilla-central to mozilla-inbound 2017-03-17 14:55:15 +01:00
Jeremy Chen
9a60f77d80 Bug 1343516 - clean up the mess of PropertyProvider and its implementations. r=jfkthame
The cleanup work includes:

part 1: make all methods 'const' for the abstract class of PropertyProvider.

part 2: make nsFontMetrics's StubPropertyProvider final.

part 3: make nsTextFrame's PropertyProvider final.

  Make some methods 'const' and some variables 'mutable', so we could let all the
  overridden methods stay const.

  We also need to make the pass-in parameter of gfxFontGroup's GetHyphenWidth const.
  Note that the comment of GetHyphenWidth seem outdated, so I fixed it as well.

part 4: make the member variables in nsTextFrame's PropertyProvider to be 'const'.

  Make all the member variables 'const' except mStart, mLength,
  mJustificationArrayStart, and mJustificationSpacings.

  The static function AdvanceToNextTab is fixed since we only use 2 of the 4 parameters.

part 5: coding style fix for nsTextFrame's PropertyProvider.

MozReview-Commit-ID: 1kbWPwx27aQ
2017-03-17 18:53:15 +08:00
Miko Mynttinen
6e4add711b Bug 1346777 - Transform layer geometry properly when intermediate surface is used r=mattwoodrow
MozReview-Commit-ID: H3YmadD8sFz

--HG--
extra : rebase_source : 8bd9f9b58d8e50fd925299fec6fc464ee50886c0
2017-03-16 21:51:54 +01:00
Kartikaya Gupta
5041aa0404 Merge m-c to graphics
MozReview-Commit-ID: 6JFx7MHUHgW
2017-03-15 08:55:17 -04:00
sotaro
8f6c141289 Bug 1347443 - Fix IsAccelAngleSupported() for RenderThread r=nical 2017-03-15 21:14:17 +09:00
Carsten "Tomcat" Book
f807b332df merge mozilla-inbound to mozilla-central a=merge 2017-03-15 13:12:42 +01:00
sotaro
a6bf6f2a63 Bug 1347050 - Remove unused workarond from ProcessWebRenderCommands r=nical 2017-03-15 16:28:13 +09:00