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

29055 Коммитов

Автор SHA1 Сообщение Дата
Botond Ballo 287d543641 Bug 1429373 - Add a clarifying comment to the declaration of APZCTreeManager::SetTargetAPZC(). r=kats
MozReview-Commit-ID: CT1H5TH3UXn

--HG--
extra : rebase_source : 916c52d44857d93e6046d81c96a9716d32136fb6
2018-01-17 18:46:07 -05:00
Ethan Lin 3ebfc01b38 Bug 1419528 - Add a reftest for box shadow with zero attributes. r=kats
MozReview-Commit-ID: CwKzjv6pMF7
2018-01-16 17:15:44 +08:00
Sebastian Hengst 78d2a3c1db Merge mozilla-central to mozilla-inbound 2018-01-24 14:24:05 +02:00
Kartikaya Gupta b62f1b8765 Bug 1432637 - Schedule a composite when setting test properties on an APZC. r=botond
Scheduling a composition sets the mNeedsComposite flag in the compositor
scheduler, so that advancing the time via advanceTimeAndRefresh doesn't
do an early-exit.

MozReview-Commit-ID: KvldsCCY0SD

--HG--
extra : rebase_source : e661e430c36553ce95d7798b4bc95ffaab48ab90
2018-01-23 17:21:58 -05:00
Kartikaya Gupta a48a892756 Bug 1432635 - When advancing the test time, trigger a rendering flush to WR. r=sotaro
MozReview-Commit-ID: UtqGoOnobm

--HG--
extra : rebase_source : e3f3f135138014a4ed8c4bed23cca18c146995c1
2018-01-23 17:20:23 -05:00
Dzmitry Malyshau 237e33208b Bug 1431776 - Update for API changes in WR PR 2326. r=jrmuizel
MozReview-Commit-ID: DNVLRmhcWFS

--HG--
extra : rebase_source : 949154d975ce9885c3b15473a5561a139c541ae3
2018-01-24 09:14:48 -05:00
Kartikaya Gupta c39c71da56 Bug 1431776 - Update webrender to commit c0943271eb8c6440a61db37e2f1e84201dcac2e3. r=jrmuizel
MozReview-Commit-ID: 57ZV2mKiGm0

--HG--
extra : rebase_source : 18dc15c9dc915477f05d2ad0d24071f0f32cf453
2018-01-24 09:13:07 -05:00
Cosmin Sabou 6cfb14fd97 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-01-25 00:07:47 +02:00
Ryan Hunt bfcc9eea72 Add paint worker count to crash report notes. (bug 1432516, r=milan)
--HG--
extra : rebase_source : 2ab184a7b1bf757eb3b60c7e9c2433b99ad3d79e
extra : histedit_source : 03c859abbc704293af35049f330d31cd2454a0b1
2018-01-23 16:17:52 -06:00
Ryan Hunt 27c33e0bdf Add tiling and paint worker count information to about:support. (bug 1432516, r=milan)
--HG--
extra : rebase_source : f2ce10a284f53b21ce5eb94f039808ec92f40685
extra : histedit_source : d3bbb62e946fe32f601cc7753513d2d30f2aa294
2018-01-23 15:52:13 -06:00
Jonathan Kew 6856ae796f Bug 1431866 - Avoid risk of undefined behavior in gfxFontStyle::Hash() calculation. r=jrmuizel 2018-01-24 17:42:30 +00:00
Jonathan Kew 7ff4c1c33d Bug 1430446 - Prefer hinted glyph widths from FreeType, except when hinting is disabled or the font includes variations. r=lsalzman 2018-01-23 18:16:42 +00:00
sotaro 603fade55f Bug 1422288 - Do no add ExternalImage for d3d texture host when ANGLE is disable with WebRender r=nical 2018-01-24 13:17:06 +09:00
sotaro 9ee2dd9629 Bug 1422288 - Disable d2d for canvas when ANGLE is disable with WebRender r=nical 2018-01-24 13:16:35 +09:00
Dorel Luca 4b9ccdb392 Merge mozilla-inbound to mozilla-central r=merge a=merge 2018-01-23 12:02:17 +02:00
sotaro d6f794fcb9 Bug 1431304 - Fix WebRenderLayerManager::ClearCachedResources() as to clear active animation ids r=nical 2018-01-23 10:57:20 +09:00
Gurzau Raul 9801931bda Merge inbound to mozilla-central. a=merge 2018-01-23 02:21:47 +02:00
Tom Ritter 40e0f3ea5e Bug 1432009 Fix MinGW build failure with d_write3.h r=jfkthame
Bump mingw version to get the newest commit and do not include the
un-needed dw-extras.h on MinGW (thanks Jacek!)

MozReview-Commit-ID: OjO93XHCxs

--HG--
extra : rebase_source : 933bbb385004988a23d1069c9cd3241b3a3b336e
2018-01-22 15:01:49 -06:00
Jamie Nicol 17afeef581 Bug 1430550 - Don't keep mutex locked if SourceSurfaceSkia::Map fails. r=bas
This was leading to a mutex never being unlocked, eventually causing a
crash when it was destroyed.

MozReview-Commit-ID: JzEDWzKxZ4S

--HG--
extra : rebase_source : c86ad738addbec55f33165d300876f4c675cf5f4
2018-01-18 16:48:08 +00:00
Gurzau Raul 76ec8a476e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-01-20 11:46:16 +02:00
Jonathan Kew faf9bf0aac Bug 1430632 - Copy declarations of new DirectWrite interfaces into our code so it will build against the current Windows SDK and WINVER settings. r=lsalzman,froydnj 2018-01-18 17:45:25 +00:00
Jonathan Kew 483d8a0507 Bug 1430632 - Support OpenType variation fonts in the DirectWrite font back-end (on Win10 Fall Creators Update). r=lsalzman 2018-01-18 17:45:24 +00:00
Jonathan Kew d477a069f3 Bug 1431305 - Handle fallback (rotated) rendering of characters with Vertical_Orientation=Tr when the font does not support them via 'vert', nor is there a vertical presentation form encoded in Unicode. r=m_kato 2018-01-19 10:46:53 +00:00
Kartikaya Gupta b9e6d272c0 Bug 1431787 - Followup to avoid the call to wr_api_get_namespace from the WebRenderAPI destructor. r=me a=RyanVM
Landing on a CLOSED TREE because this needs to go to beta to fix the build.

MozReview-Commit-ID: Askd7fgnn3E
2018-01-19 16:42:40 -05:00
Kartikaya Gupta 6f56b6c848 Bug 1431787 - Mark wr_dec_ref_arc safe to be called by the WebRenderAPI destructor when WR is not built. r=lsalzman a=RyanVM
Landing on a CLOSED TREE because this needs to go to beta to fix the build.

MozReview-Commit-ID: cSwZ2Bp242
2018-01-19 13:19:00 -05:00
Noemi Erli 1e1fdc2b3d Merge inbound to mozilla-central. a=merge 2018-01-19 12:10:24 +02:00
JerryShih 0f873b8e86 Bug 1431028 - Move the gfx warning to the correct position. r=mattwoodrow
We should only show the warning message when we have the on-white buffer.

MozReview-Commit-ID: 4gzo0reYIVL
2018-01-17 02:19:00 -05:00
JerryShih 138670043b Bug 1431028 - Don't discard the back buffer in ClientSingleTiledLayerBuffer. r=mattwoodrow
MozReview-Commit-ID: HHbqlAnSVmN
2018-01-17 02:19:00 -05:00
sotaro 2739f28b3d Bug 1429994 - Use ID3D11Query to wait previous frame completion r=nical 2018-01-18 18:01:04 -08:00
Andreea Pavel b5e28b4ecd Backed out changeset 70c2890fb875 (bug 1429994) for static-analysis bustages on Windows 2018-01-19 01:38:11 +02:00
sotaro 376a1f40bd Bug 1429994 - Use ID3D11Query to wait previous frame completion r=nical 2018-01-19 07:49:08 +09:00
Lee Salzman d7042b0a8f Bug 1400917 - render missing glyphs with WebRender. r=gankro 2018-01-18 16:10:14 -05:00
Hiroyuki Ikezoe 808d686c60 Bug 1431295 - Drop 'undef None' macro in gfx. r=botond
MozReview-Commit-ID: FGOEsZnu50u

--HG--
extra : rebase_source : 60ba20e9ab9f207ce6b69406973dd3f864b5e322
2018-01-18 14:12:51 +09:00
Kartikaya Gupta 3031985f8c Bug 1430829 - Update for removal of ImageFormat::Invalid in WR PR 2317. r=jrmuizel
MozReview-Commit-ID: 5TFM7B652qG

--HG--
extra : rebase_source : 8c5602ea2c8a7810da0ef1fb176c80016856210e
2018-01-19 12:33:58 -05:00
Kartikaya Gupta c8626b8097 Bug 1430829 - Update webrender to commit e9269c7e06e20363be0b2a2a1be98d292ff7acca. r=jrmuizel
MozReview-Commit-ID: CLfV8OtVG7Z

--HG--
extra : rebase_source : b8b2e454ed84e177aac11db182bd1ed8ac7892ef
2018-01-19 12:32:00 -05:00
Andrew Osmond 6f5458a90b Bug 1431130 - Ensure we retain the lock when accessing sLayerIndirectTree off the compositor thread. r=botond
CompositorBridgeParent::GetIndirectShadowTree is meant to be a
compositor thread only method. This however was not enforced with an
assert and over time we began using it on the main thread for simple
accesses. These accesses should generally be safe on the main thread,
depending on the individual access, but not outside the lock
GetIndirectShadowTree holds. As such, a safer variant is provided to
execute a lambda inside the lock context, and the unsafe variant will
assert it is indeed in the compositor thread context.
2018-01-18 07:28:56 -05:00
Lee Salzman 7960a042d1 Bug 1431211 - clean up WR blob image renderer resources on API destruction. r=gankro
MozReview-Commit-ID: E7XuM7vpEXd
2018-01-18 06:28:09 -05:00
Dorel Luca a066bff27d Merge mozilla-inbound to mozilla-central r=merge a=merge 2018-01-18 11:43:47 +02:00
sotaro 00c8806482 Bug 1430610 - Change nsIFrame::InvalidateLayer() as to check WebRender's async update r=mtseng 2018-01-18 13:28:49 +09:00
Kartikaya Gupta 8903b49768 Bug 1429951 - Propagate the non-premultiplied flag for textures to WR. r=sotaro
MozReview-Commit-ID: Vd5n5e7XuW

--HG--
extra : rebase_source : ebd563dd785d99a9623906554dfe8ccd507930b4
2018-01-17 12:55:40 -05:00
Tiberius Oros 0f3b1d6ace Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-01-18 00:28:57 +02:00
Tiberius Oros 92e228aa49 Merge inbound to mozilla-central. a=merge 2018-01-17 23:48:10 +02:00
Kartikaya Gupta c017160218 Bug 1430660 - Move the APZ update of scroll layer positions into a transaction. r=nical
MozReview-Commit-ID: 45ijEtB1C0Z

--HG--
extra : rebase_source : b700ad68fdc44096dc0348bf1badf94dc993d36f
2018-01-17 11:19:39 -05:00
Lee Salzman 1a23b6eab1 Bug 1400384 - support text writing modes with WebRender. r=gankro 2018-01-17 07:51:20 -05:00
Andrew Osmond a9eff43405 Bug 1430795 - Ensure certain gfx gtests are initialized properly. r=aosmond 2018-01-17 07:34:34 -05:00
Cosmin Sabou 1f9b4f0f06 Merge inbound to mozilla-central. a=merge 2018-01-17 11:46:53 +02:00
sotaro 952e915b38 Bug 1430694 - Check if RenderCompositor is created r=nical 2018-01-17 09:25:31 +09:00
Jeff Gilbert d9815e3cac Bug 1429754 - Trust the driver about floating point support. - r=daoshengmu
Remove the probe, and remove the cached value check.
Also remove dead code which relies on this sometimes-clamping glGet query.

MozReview-Commit-ID: JA1VgH8fLRB
2018-01-16 15:06:49 -08:00
Nika Layzell 793a39c213 Bug 1424766 - Simplify `HangStack` and `HangDetails` by implementing using ipdl structs and unions, r=froydnj
MozReview-Commit-ID: qlBUnvYams
2018-01-16 14:07:38 -05:00
Noemi Erli 1c9bbfbebc Backed out 2 changesets (bug 1403519) for bustage on \python\mozbuild\mozbuild\test\frontend\test_reader.py on a CLOSED TREE
Backed out changeset f53f8adcd578 (bug 1403519)
Backed out changeset 5b293bcd3fc7 (bug 1403519)
2018-01-17 07:23:40 +02:00
Andrew Osmond da27a58fb3 Backed out changeset ca1b397bffcf bug 1388020 2018-01-16 08:07:51 -05:00
Andrew Osmond 8240965b0a Bug 1388020 r=nical 2018-01-16 07:50:58 -05:00
Morris Tseng e29700e366 Bug 1424177 - Slightly enlarge drawtarget size when fallback. r=kats
MozReview-Commit-ID: Dam5l91Y93Y
2018-01-16 17:33:12 +08:00
Jonathan Kew e164d9c087 Bug 1430552 - Handle possible freetype failures in gfxFT2FontBase::GetFTGlyphAdvance to avoid risk of crashes. r=lsalzman 2018-01-15 16:36:47 +00:00
sotaro 8ebc9420bc Bug 1429997 - Add RenderCompositor to wrap platform dependent code r=nical 2018-01-15 22:22:15 +09:00
sotaro 4bd6341225 Bug 1429694 - Fix WebRenderLayerManager::ClearCachedResources r=nical 2018-01-15 16:17:40 +09:00
Stone Shih 0d518e6fbf Bug 1414336 - Don't fire pointercancel when content prevents default on touchstart. r=kats.
MozReview-Commit-ID: LWPI415MV2F
2018-01-11 10:12:20 +08:00
Jonathan Kew 42e35bdbd0 Bug 1430216 - For non-scalable fonts, we can't use the linearHoriAdvance field from the glyph slot; use the advance field instead to get proper metrics. r=lsalzman 2018-01-13 15:16:44 +00:00
Chris Peterson 37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Csoregi Natalia 7476b71e00 Merge inbound to mozilla-central r=merge a=merge 2018-01-12 23:59:06 +02:00
Nicolas Silva 4bb86a059e Bug 1405824 - Adjust the default resource update alloc chunk size. r=jrmuizel 2018-01-12 15:11:41 +01:00
Nicolas Silva a98ed42cd6 Bug 1405824 - Recycle a Shmem for IpcResourceUpdateQueue to avoid allocation overhead. r=jrmuizel 2018-01-12 15:11:32 +01:00
Nicolas Silva 36aaaf44e8 Bug 1405824 - Use WebRenderBridgeChild instead of IShmemAllocator in IpcResourceUpdateQueue. r=jrmuizel 2018-01-12 15:11:28 +01:00
862ff35d21 Bug 1405824 - Add a RefCountedShmem type that supports manual cross-process reference counting. r=jrmuizel 2018-01-04 16:23:18 +00:00
Nicolas Silva 43644aaded Bug 1425453 - Move more WebRender api calls into transactions. r=kats 2018-01-12 12:24:07 +01:00
Nicolas Silva 1595da23b6 Bug 1425453 - Move some WebRender api calls into transactions. r=kats 2018-01-12 12:24:03 +01:00
Nicolas Silva e9e30c02c6 Bug 1425453 - Bindings for WebRender's transaction API. r=kats 2018-01-12 12:23:59 +01:00
Margareta Eliza Balazs 82e1a579e9 Backed out changeset add48ffcf303 (bug 1429754) for gl failing in dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_color_buffer_half_float.html on a CLOSED TREE 2018-01-12 07:10:00 +02:00
Jeff Gilbert c606284204 Bug 1429754 - Trust the driver about floating point support. - r=daoshengmu
Remove the probe, and remove the cached value check.
Also remove dead code which relies on this sometimes-clamping glGet query.

MozReview-Commit-ID: JA1VgH8fLRB
2018-01-11 18:53:23 -08:00
Noemi Erli adbfbaab81 Merge inbound to mozilla-central r=merge a=merge 2018-01-11 23:54:07 +02:00
Milan Sreckovic e3960c6dce Bug 1429602: Rename BaseRect::IsZero to BaseRect::IsZeroArea. Also slip in some corrections to using BaseRect methods instead of direct member access. r=bas.schouten
MozReview-Commit-ID: H3ApaWesbKF

--HG--
extra : rebase_source : c4f73da113a604c14fbf0f1ef4c598d032d68792
2018-01-10 17:57:10 -05:00
Andrew Osmond a0be88332d Bug 1428946 - Part 2. Make ApplyBlending_SIMD and ApplyArithmeticCombine_SIMD support the same surface for both inputs. r=bas 2018-01-11 08:48:46 -05:00
Andrew Osmond 7cc5611e47 Bug 1428946 - Part 1. Make comparing and mapping DataSourceSurfaceWrapper objects work consistently. r=bas 2018-01-11 08:48:46 -05:00
Kartikaya Gupta 90321eec03 Bug 1428766 - Update webrender to commit 722e8b104bf99d29d61ecb1fe456eebe89ad81fd. r=jrmuizel
MozReview-Commit-ID: GsDbUIfQFlm

--HG--
extra : rebase_source : 073d14ce480c795fc6a1c0c3cd2d243a1f7d190c
2018-01-11 10:53:24 -05:00
Sylvestre Ledru 424664ff30 Bug 1278282 - Remove the 'MOZ_WIDGET_GTK == 2' defines r=karlt,lsalzman
MozReview-Commit-ID: 3v8D600g8St

--HG--
extra : rebase_source : 34ea6f9868c1b322076c24daa75dc33e27b6704e
2018-01-10 08:52:04 +01:00
Sylvestre Ledru f8b1d9ab46 Bug 1278282 - update of the moz.build files to remove gtk2 references r=lsalzman
MozReview-Commit-ID: FO1wEHzOkuN

--HG--
extra : rebase_source : ac7e61cf47d013de882048740c889735a0a7cad8
2018-01-10 10:04:59 +01:00
Ciure Andrei 23575f7023 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2018-01-11 12:06:29 +02:00
Ciure Andrei f7400ad72e Merge inbound to mozilla-central r=merge a=merge 2018-01-11 11:54:56 +02:00
Cameron McCormack c4663ea0f0 Bug 1427419 - Part 22: Move inIDOMUtils.getUsedFontFaces to InspectorUtils. r=bz
This also changes the function to return a sequence (JS Array) instead of
an nsFontFaceList object, and converts nsFontFace/nsIDOMFontFace into a
Web IDL implemented object too.

MozReview-Commit-ID: 1iAW3DYe5kO

--HG--
rename : layout/inspector/nsFontFace.cpp => layout/inspector/InspectorFontFace.cpp
2018-01-11 12:38:01 +08:00
vincentliu b059ffc41f Bug 1418999 - Update PipelineId to associate the latest ImageContainer. r=sotaro 2018-01-11 09:45:02 +08:00
Ethan Lin 541a2b1d3c Bug 1424673 - Add a reftest for the bug. r=kats
MozReview-Commit-ID: 9lwptqWqHvW

--HG--
extra : rebase_source : a2631f0981e05d5d62ec0b6338de2f6a5c518dcf
2018-01-09 10:36:46 +08:00
Jeremy Chen d01f98efad Bug 1429977 - make comments for BreakAndMeasureText up-to-date (comment-only, DONTBUILD). r=jfkthame
MozReview-Commit-ID: ILWAnMT9Fdp

--HG--
extra : rebase_source : a7e70e90d32ce363efb2a927ddc4e83af80a53e3
2018-01-12 02:58:29 +00:00
Botond Ballo d37ea94bf4 Bug 1423981 - Disable WebRender hit testing in GTests that rely on the results of hit-testing. r=kats
The GTests don't have a way of setting up the relevant state in WebRender
for the hit test to succeed.

MozReview-Commit-ID: IyjK349MN5u

--HG--
extra : rebase_source : 9bc662601b6424fc956107a04f03e7d979bb1d1c
2018-01-09 18:08:58 -05:00
Botond Ballo 17ea0e44ec Bug 1423981 - In the WebRender hit test, fall back to the root APZC if WebRender isn't running. r=kats
MozReview-Commit-ID: CB6yafVfFbG

--HG--
extra : rebase_source : cbde0665fcb2e38e527c150b8d4aa27d3076997c
2018-01-09 18:07:54 -05:00
Dorel Luca ccebfc1873 Merge mozilla-central to autoland r=merge 2018-01-11 00:03:38 +02:00
Ryan VanderMeulen 88439dc6c5 Backed out changeset 6b52d9870d2d (bug 1417310) for causing bug 1428730 on a CLOSED TREE.
--HG--
extra : rebase_source : 34e51fa8c48b0ea200eb293a5dc6742ccf6b6c49
2018-01-10 11:27:07 -05:00
Milan Sreckovic 51522de433 Bug 1425260: gfx.webrender.all turns on all preferences that are needed for webrender. r=kats
MozReview-Commit-ID: 9LKNB2HngMH

--HG--
extra : rebase_source : b9511be46d1bcb8ac41e51fd6d44176d1e6da4c6
2018-01-10 13:09:18 -05:00
Gurzau Raul 2d062bac22 Merge inbound to mozilla-central r=merge a=merge 2018-01-10 11:58:20 +02:00
sotaro 9de91656bc Bug 1424747 - Call eglDestroyStreamKHR during deleting EGLStreamKHR r=jgilbert 2018-01-10 14:11:03 +09:00
Sebastian Hengst 1ebdaf80de merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2018-01-10 01:52:28 +02:00
Lee Salzman 7755d675bb Bug 1394568 - plumb synthetic italics flag through thebes and Moz2D into WebRender. r=gankro 2018-01-09 10:37:49 -05:00
Jeff Gilbert f4cfe8596a Bug 1428898 - Add TlsScope to reduce fIsCurrent calls. - r=daoshengmu
MozReview-Commit-ID: Kyi8dcO7nAu
2018-01-09 18:43:35 -08:00
Lee Salzman 08bc97046a Bug 1425346 - lock access to cairo_ft_unscaled_font_t's faces list. r=jrmuizel
MozReview-Commit-ID: GjIiO7P9Wak
2018-01-09 16:18:38 -05:00
Margareta Eliza Balazs 3ab3149a84 Merge mozilla-central to inbound. r=merge a=merge CLOSED TREE 2018-01-09 12:16:12 +02:00
sotaro f8c3842c38 Bug 1395107 - Create GL context for WebRender with CompositorDevice applied r=jgilbert 2018-01-09 19:07:50 +09:00
Margareta Eliza Balazs fe2caaa266 Merge inbound to mozilla-central r=merge a=merge 2018-01-09 11:52:55 +02:00
Morris Tseng ae9a064d8e Bug 1374729 - Use correct format for MacIOSurface. r=nical
MozReview-Commit-ID: 43JBSi5mqT7
2018-01-09 14:12:02 +08:00
Jeff Gilbert 93dcf044db Bug 1427088 - Don't rely on glGetStringi just because it exists. - r=daoshengmu
MozReview-Commit-ID: Gmf6phqDOTK
2018-01-08 18:43:34 -08:00
Kearwood "Kip" Gilbert b91be1697a Bug 1402147 - Part 1: Fire VRDisplayConnect event for VR displays that are already enumerated when a page is loaded r=daoshengmu
MozReview-Commit-ID: 7zQOSYJ6tkg

--HG--
extra : rebase_source : e2535cb282475795a6107a002cce629049258b38
2018-01-04 14:27:03 -08:00
Milan Sreckovic bf8a535a29 Bug 1428348: Allow Set{Left,Right,Top,Bottom}Edge methods to compute negative width/height without asserting. r=bas.schouten
MozReview-Commit-ID: EOGgAvq4lPW

--HG--
extra : rebase_source : 359dc88940a6f9d353b33d6b5a264dc88955157d
2018-01-09 11:24:37 -05:00
Lee Salzman 8dfd9e72ac Bug 1428874 - pass gfxMacFont synthetic bold status to ScaledFontMac. r=gankro
MozReview-Commit-ID: Dn3l5UJlDQL
2018-01-08 15:43:46 -05:00
shindli ee57c0cd8a Merge inbound to mozilla-central r=merge a=merge 2018-01-06 23:46:15 +02:00
Kartikaya Gupta 5a377242ca Bug 1422057 - Remove now-unnecessary ::Equals checks. r=mstange
Part of this is a backout of bug 1421054 which is no longer needed now
that we can assume equivalent clip items have identical pointer values.

MozReview-Commit-ID: BhnLVmVr4TX

--HG--
extra : rebase_source : b9bbb733fc69a0f15cd35d0265589aea257a5285
2018-01-06 09:52:59 -05:00
Kartikaya Gupta a3c7786114 Bug 1422057 - Extend the clipchain of a display item to the ancestor's clipchain if it is a strict superset. r=mstange
See the documentation in the added function for details.

MozReview-Commit-ID: 4R0WaSy0tm2

--HG--
extra : rebase_source : f6bcdafb708f9527afafab54e3ba7e34040054b0
2018-01-06 09:52:58 -05:00
Kartikaya Gupta 9f16273ad3 Bug 1422057 - Extract a local variable. r=mstange
This makes the next patch cleaner.

MozReview-Commit-ID: KjqdiBFFlMM

--HG--
extra : rebase_source : cbcf6b23c494aa6a4718b76f11e9c889c7a1690e
2018-01-06 09:52:58 -05:00
Kartikaya Gupta d763b16932 Bug 1422057 - Avoid caching clips across stacking contexts with non-identity transforms. r=mstange
When a clip is defined in WebRender, any transforms on the containing
stacking contexts are baked into the clip's position. Therefore, trying
to use a clip that was defined inside a transformed stacking context in
other parts of the WR display list doesn't work properly. This was a
latent bug in ScrollingLayersHelper that was previously not exposed
because in these cases Gecko itself creates separate
DisplayItemClipChain items. Now that we are going to deduplicate those
DisplayItemClipChain items, it exposes this latent bug which we need to
fix.

MozReview-Commit-ID: Icd7L1JuY8s

--HG--
extra : rebase_source : 08749125b68b537244a054d00a41f671670d00bb
2018-01-06 09:52:58 -05:00
Kartikaya Gupta 25d94ecc40 Bug 1422057 - Adjust some logging-related things to be more useful. r=mstange
MozReview-Commit-ID: Idheevum5Fd

--HG--
extra : rebase_source : a441cc0b65c763763a4a417cc1d713cd771e467d
2018-01-06 09:52:57 -05:00
Jeff Gilbert 68be900a6c Bug 1427668 - Require frag_color_float for color_buffer_*float extensions. - r=daoshengmu
Add probe for faulty frag_color_float implementations.

MozReview-Commit-ID: E2I0mrDuicV
2018-01-05 15:27:59 -08:00
Jeff Gilbert db4f0399df Bug 1427668 - Fixes and spew. - r=daoshengmu
MozReview-Commit-ID: 9NPkWsh2rxE
2018-01-05 15:27:56 -08:00
Jeff Gilbert 8fc8584d67 Bug 1427668 - Disable MakeCurrent TLS for ANGLE for now. - r=daoshengmu
MozReview-Commit-ID: HzKKivtXeHX
2018-01-05 15:27:54 -08:00
Jeff Gilbert 8ab9a9aa21 Bug 1427668 - Assert that no-alpha backbuffers have 0xff alpha. - r=daoshengmu
MozReview-Commit-ID: 5UJdoud0f2C
2018-01-05 15:27:51 -08:00
Jeff Gilbert 7edc1cd1d7 Bug 1427668 - Lose context if EnsureDefaultFB fails. - r=daoshengmu
MozReview-Commit-ID: 8OqXYXpUv4I
2018-01-05 15:27:48 -08:00
Jeff Gilbert 3331434de7 Bug 1427668 - Unify MaxRenderbufferSize and MaxTextureSize. - r=daoshengmu
MozReview-Commit-ID: AFS0IqmkQEo
2018-01-05 15:27:46 -08:00
Jeff Gilbert 79fa5ae9cf Bug 1427668 - Reject too-large MozFramebuffer requests. - r=daoshengmu
MozReview-Commit-ID: G2jqeb7QqhE
2018-01-05 15:27:33 -08:00
Jeff Gilbert df8e8db803 Bug 1427668 - Move the webgl backbuffer into webgl. - r=daoshengmu
MozReview-Commit-ID: 2WpG7mfMRQ8
2018-01-05 15:27:30 -08:00
Jeff Gilbert 3f0aacfb10 Bug 1427668 - Add MozFramebuffer. - r=daoshengmu
MozReview-Commit-ID: CX0wxs7Gqvp
2018-01-05 15:27:28 -08:00
Jonathan Kew 6cf89ddd0e Bug 1427641 - patch 8 - Refactor gfxFT2FontBase glyph-width code so that we properly respect variations when getting character widths during InitMetrics. r=lsalzman 2018-01-02 13:29:54 +00:00
Jonathan Kew 7222178ff9 Bug 1427641 - patch 7 - Work around buggy FreeType metrics APIs when using variation fonts with FT versions prior to 2.8.2. r=lsalzman 2018-01-02 13:29:48 +00:00
Jonathan Kew 075a3b6980 Bug 1427641 - patch 6 - Tidy up and refactor code for creating FcPattern for an FT_Face and vice versa. r=lsalzman 2018-01-06 10:58:23 +00:00
Jonathan Kew 12da6cfb3e Bug 1427641 - patch 5 - Also for system-installed fonts, create a separate FcPattern and face for each instance when variations are present. r=lsalzman 2018-01-06 10:58:23 +00:00
Jonathan Kew fba67c901c Bug 1427641 - patch 4 - For downloadable fonts that have variations, create a separate FT_Face for each instance used. r=lsalzman 2017-12-10 14:01:32 +00:00
Jonathan Kew 88ac266967 Bug 1427641 - patch 3 - Add variation data to the cairo_ft_*_font objects, so they can properly track instances of the same font resource used with different variation parameters. r=lsalzman 2017-12-07 13:22:49 +00:00
Jonathan Kew 5080cdedd5 Bug 1427641 - patch 2 - Convert variation values into FreeType's data type, and apply them to the FT_Face. r=lsalzman 2017-12-06 14:42:42 +00:00
Jonathan Kew 7ef5a362b4 Bug 1427641 - patch 1 - Get glyph widths directly from the FreeType face, instead of via a cairo scaled_font wrapper. r=lsalzman 2017-12-06 13:51:39 +00:00
jlogandavison d00bc034b2 Bug 1180865 - Implement pinch locking in APZC. r=botond
Mechanism for restricting pinch zooming when gesture is a two
finger pan. If the pinch span is below a given threshold and the
scroll distance above a given threshold then the zoom level is
maintained to allow for smooth panning with two fingers.

MozReview-Commit-ID: 62Fv0WeplOo

--HG--
extra : rebase_source : 71d7da4c4b4cc3a5adde13ad1a7c1fbf49856c35
2017-11-18 19:48:25 +00:00
Ryan Hunt 20789635c3 Generate webrender_ffi_generated with cbindgen:0.3.3 (bug 1428142, r=nical)
--HG--
extra : rebase_source : 930fc29308f193d9e3b54495508fb6101806bac5
extra : histedit_source : 01d64855b96776b623a248a85ee96febfdc0edfd%2C38c52cb3034b777d66de02ec5041b2d08f4bb272
2018-01-04 12:23:34 -06:00
Andrew Osmond 6328ed7810 Bug 1428013 - Ensure a shared surface's image key is recreated during a tab move. r=sotaro
SourceSurfaceSharedData objects have a WrImageKey associated with each
WebRenderBridgeChild/WebRenderLayerManager pairing. Normally this key is
only regenerated when the surface itself needs to invalidate. However
when a tab is moved (e.g. dragged into a new/different window), the
WebRenderBridgeChild's state will be reset. Any existing keys were
discarded and it has a new namespace. SourceSurfaceSharedData needs to
take this into account, and generate a new key when there is a namespace
mismatch.
2018-01-05 07:02:58 -05:00
Tiberius Oros 0a895028f7 Merge inbound to mozilla-central r=merge a=merge 2018-01-05 11:57:58 +02:00
Jeff Gilbert c845da008c Bug 1347731 - Simplify WGL initialization code. - r=daoshengmu
MozReview-Commit-ID: DpS0nkTghXD
2018-01-04 15:07:02 -08:00
Daosheng Mu 9dfae67fe9 Bug 1427830 - If VR submit thread is inactive in Oculus, don't post tasks; r=kip
MozReview-Commit-ID: BKaD7ft3Fms

--HG--
extra : rebase_source : 94efe7f82541bfcf45f07b8ca83daa6edb1281c9
2018-01-04 10:52:55 +08:00
Andreea Pavel 569609f11d Merge mozilla-central to mozilla-inbound r=merge a=merge on a CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug_1050691_click_function_to_source.html => devtools/client/webconsole/new-console-output/test/mochitest/test-click-function-to-source.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug_1050691_click_function_to_source.js => devtools/client/webconsole/new-console-output/test/mochitest/test-click-function-to-source.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-603750-websocket.html => devtools/client/webconsole/new-console-output/test/mochitest/test-websocket.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-603750-websocket.js => devtools/client/webconsole/new-console-output/test/mochitest/test-websocket.js
rename : taskcluster/docker/android-build/dot-config/pip/pip.conf => taskcluster/docker/recipes/dot-config/pip/pip.conf
rename : toolkit/components/places/tests/bookmarks/test_protectRoots.js => toolkit/components/places/tests/legacy/test_protectRoots.js
extra : rebase_source : 52cfc27d3ad7f31d2cb758802a4e718c08e9ffe2
2018-01-04 23:33:08 +02:00
Andreea Pavel 25357802c6 Merge mozilla-inbound to mozilla-central r=merge a=merge 2018-01-04 23:28:19 +02:00
Ryan Hunt 51163a3c52 Wait for a previous empty transaction to complete before doing another empty transaction (bug 1427089, r=dvander)
--HG--
extra : rebase_source : 26276bc5c2073c86f3c57296ed7b1b5126dc4c18
2018-01-03 16:56:25 -06:00
Ryan Hunt bc65f35f15 Only queue a ContentClient buffer state if it has operations (bug 1427089, r=dvander)
--HG--
extra : rebase_source : 200e59db7a140b0981b1d07ebf6d8ee241336322
2018-01-03 16:55:01 -06:00
Botond Ballo 7e42a77d38 Bug 1425686 - Remove scroll input methods telemetry code. r=kats
MozReview-Commit-ID: 1PC4826SMvh

--HG--
extra : rebase_source : 0123b921159864518e92077dd81d5185816e063a
2017-12-20 15:16:18 -05:00
Alexis Beingessner 42b068a0b3 Bug 1406231 - remove the TextLayer class, and all remaining traces of it. r=mattwoodrow
MozReview-Commit-ID: 5fmKfkO6hnO

--HG--
extra : rebase_source : 3572bba4d1aec75af2ef19d52351d7ea2137cc53
2017-12-07 17:13:05 -05:00
Daosheng Mu 939d422ae6 Bug 1424378 - Switch off Windows MR mode when the amount of button or axes is less than our expectation; r=kip
MozReview-Commit-ID: AONBdKV0Zqj

--HG--
extra : rebase_source : 86ae1231ec549cf3633dd9a327db7b142a8f1c32
2017-12-12 10:49:03 -06:00
Kearwood "Kip" Gilbert 71c9509bf3 Bug 1426546 - Stop enumerating Oculus devices if one is not found, until a page later calls Navigator.getVRDisplays r=daoshengmu
MozReview-Commit-ID: BzhXSuMF4Je

--HG--
extra : rebase_source : c44d11ff04b1604288e689733787a5df87bfc003
2017-12-20 15:57:26 -08:00
Jamie Nicol 59e9b39045 Bug 1421481 - Post-review follow-up for webgl context initialization. r=jgilbert
MozReview-Commit-ID: Ja3t0gcWHZS
2018-01-04 13:38:47 +00:00
Dorel Luca a19f5582cc Merge mozilla-central to mozilla-inbound r=merge 2018-01-11 00:05:23 +02:00
Ryan Hunt fff3bf05d6 Create a PaintWorker thread pool and dispatch tiles to it (bug 1425056, r=bas)
This commit adds a paint worker thread pool to PaintThread, and dispatches
tiled paints to it. The thread pool is only created if tiling is enabled,
and its size is set by 'layers.omtp.paint-workers' and defaults to 1. If
-1 is specified, it will be sized to 'max((cpu_cores * 3) / 4, 1)'.

The one tricky part of dispatching tiled paints to a thread pool is the
AsyncEndLayerTransaction message that must execute once all paints are
finished. Previously, this runnable would be queued after all the paints
had been queued, ensuring it would be run after they had all completed.

With a thread pool, there is no guarantee. Instead this commit, uses
a flag on CompositorBridgeChild to signify whether all of the paints
have been queued ('mOutstandingAsyncEndLayerTransaction'), and after
every tiled paint it is examined to see if that paint was the last
paint, and if it is to run AsyncEndLayerTransaction. In addition,
if the async paints complete before we even mark the end of the
layer transaction, we queue it like normal.

The profiler markers are also complicated by using a thread pool.
I don't know of a great way to keep them working as they are per
thread, so for now I've removed them. I may have been the only
one using them anyway.

MozReview-Commit-ID: 5LIJ9GWSfCn

--HG--
extra : rebase_source : 0c26806f337a1b4b1511945f9c72e787b426c5ba
2017-12-08 01:18:05 -06:00
Ryan Hunt 7834357a92 Make a CaptureTiledPaintState for each tile (bug 1425056, r=bas)
This makes it so that each tile of a paint gets a DrawTargetCapture and
its own buffer operations. Once this is done, each CaptureTiledPaintState
will be isolated from each other and able to be done in parallel.

MozReview-Commit-ID: BuBDXgjma4z

--HG--
extra : rebase_source : 6ae3dc439ebc19bcaada9486894d542d138a460d
2017-12-07 23:45:47 -06:00
Ryan Hunt 842c95d26d Report a DrawTargetTiled as a capture if it is made of captures (bug 1425056, r=bas)
This will make it so that we avoid main thread rasterization for box shadows.

MozReview-Commit-ID: 9Tg4dsH21V6

--HG--
extra : rebase_source : 5af0460239ba3d54aca483b07a494e81ed9294d2
2017-12-13 09:27:07 -06:00
Ryan Hunt 2f60fa5264 Make debug bounds checking for FilterNodeSoftware thread safe (bug 1425056, r=mstange)
This debug only bounds checking is not thread safe to any filter nodes drawing at
the same time. I believe it makes sense to just manually calculate the bounds and
pass them along in the functions that need them.

MozReview-Commit-ID: 9GiYRbWuVF6

--HG--
extra : rebase_source : 388187ef92505a946d4e0a9392353373a9cfeced
2017-12-18 13:06:30 -06:00
Ryan Hunt f425854b5b Don't cache SourceSurface's in FilterNodeSoftware (bug 1425056, r=mstange)
Caching SourceSurfaces on a filter node is not thread safe to multiple
threads executing the same filter node at the same time. We could add
a mutex to every filter node and guard on that, but I think it makes
sense to just remove the caching for now. I'm open to readding this,
if this proves to be a problem.

MozReview-Commit-ID: Ca38WlG3V89

--HG--
extra : rebase_source : f0e63b4996928eea5588801d1a724c4a9f3d5040
2017-12-18 12:46:09 -06:00
Ryan Hunt 493d9c30b5 Lock access to PowCache in FilterNodeLighting (bug 1425056, r=mstange)
PowCache is not thread safe to the same filter node being drawn by multiple threads
at the same time. In this case I think it's easiest to just add a mutex for this
filter node.

MozReview-Commit-ID: 7pHuFYGxV4B

--HG--
extra : rebase_source : 3f0d9bc608880082a54b245d2fc4f7b970222a9a
2017-12-20 10:36:23 -06:00
Kartikaya Gupta 8744e6963d Bug 1426116 - Regenerate FFI header and remove RGB8 references to go with changes in WR PR 2260. r=jrmuizel
MozReview-Commit-ID: 41bny8b6KSi

--HG--
extra : rebase_source : 04b2e2f4091b3a27c8c80b7aa2fa4a11f6836431
2018-01-08 09:19:27 -05:00
Kartikaya Gupta 9599c98878 Bug 1426116 - Update webrender to commit a422f907be948b92bf5c7003a01f7744391a795e. r=jrmuizel
MozReview-Commit-ID: 1PTMg1c0KiC

--HG--
extra : rebase_source : 49180fae34c1aa54d71f1cc060377c842834c3ac
2018-01-08 09:19:23 -05:00
sotaro b3925d6d09 Bug 1430700 - Implement WebRenderFallbackData::ClearCachedResources() r=nical 2018-01-18 10:36:56 +09:00
Tiberius Oros aed73bde87 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-01-18 00:31:28 +02:00