Commit Graph

27772 Commits

Author SHA1 Message Date
Chih-Yi Leu
21e1fd5448 Bug 1371190 - Part 2: Update ANGLE to chromium/3229. r=jgilbert
MozReview-Commit-ID: 5RWR2rPf5DZ

--HG--
rename : gfx/angle/src/common/third_party/numerics/base/numerics/OWNERS => gfx/angle/src/common/third_party/base/anglebase/numerics/OWNERS
rename : gfx/angle/src/common/third_party/numerics/base/numerics/safe_numerics_unittest.cc => gfx/angle/src/common/third_party/base/anglebase/numerics/safe_numerics_unittest.cc
rename : gfx/angle/src/third_party/murmurhash/LICENSE => gfx/angle/src/common/third_party/murmurhash/LICENSE
extra : source : 88ddf39c0d793dc508c3083515e69bfe3eb4d420
2017-10-02 10:25:08 +08:00
Chih-Yi Leu
96abdd1366 Bug 1371190 - Part 1: Modify gecko to be compatible to newer ANGLE. r=jgilbert
MozReview-Commit-ID: 5iK1L4ioVFK

--HG--
extra : source : 472a419a8d65f888ebc5d64ae90c59881cef4d73
2017-05-24 15:20:02 +08:00
sotaro
2935e1ba35 Bug 1407149 - Add immediate context pointer check to d3d images r=nical 2017-10-10 19:09:37 +09:00
Sebastian Hengst
aa7c8d6587 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-09 23:58:00 +02:00
Sebastian Hengst
c2d6023454 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 36L7JL73CzG
2017-10-09 23:52:04 +02:00
Nathan Froyd
046b03d3df Bug 1406474 - provide gfxUserFontSet::Entry with a move constructor; r=heycam
This change makes moving Entry around more efficient, and also copies
the mAllowedFontSets member as a ride-along bonus fix.
2017-10-09 16:11:10 -04:00
Sebastian Hengst
d7b893d711 Backed out changeset 1779da025280 (bug 1406474) for crashing in reftest and web-platform-tests, e.g. layout/reftests/font-face/download-2-big.html. r=backout on a CLOSED TREE 2017-10-09 17:44:25 +02:00
Nathan Froyd
26105ef609 Bug 1406474 - provide gfxUserFontSet::Entry with a move constructor; r=heycam
This change makes moving Entry around more efficient, and also copies
the mAllowedFontSets member as a ride-along bonus fix.
2017-10-09 10:39:38 -04:00
Kevin Chen
57ae515fa5 Bug 1406305 - Remove unused arguments in StackingContextHelper's constructor; r=kats
MozReview-Commit-ID: 47owLOUhMBM
2017-10-06 15:06:08 +08:00
Kevin Chen
2c8e8eae56 Bug 1401898 - Add root StackingContext for WebRenderCommandBuilder which prevents Webrender from treating the first StackingContext as page root and setting the wrong isolation mode; r=kats
MozReview-Commit-ID: 5EBBgPpOGbv
2017-10-05 14:59:10 +08:00
Jamie Nicol
7417b9b0d4 Bug 1395138 - Hold reference to layers in ContainerLayerComposite::mPrepared. r=mattwoodrow
MozReview-Commit-ID: 6qUDRnRcFAw
2017-10-09 12:48:31 +01:00
Sebastian Hengst
aa78440a09 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EE6DcCgHufi
2017-10-09 11:19:20 +02:00
Nicholas Nethercote
8a68e6fb83 Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.

This patch greatly simplifies how things are exposed. The starting point is:

- GeckoProfiler.h can be #included unconditionally;

- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.

In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.

The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.

Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Nicholas Nethercote
cbc9fbb2bf Bug 1403868 (part 2) - Tweak profiler_tracing(). r=mstange.
This patch does the following.

- Makes the TracingKind argument non-optional.

- Puts the UniqueProfilerBacktrace argument last in the second variant.

- Reorders AutoProfilerTracing to match the order of the profiler_tracing()
  declarations.

--HG--
extra : rebase_source : 8e9acdaf777c642cd854570771a3f96da6d524d1
2017-10-03 19:48:10 +11:00
Yoshi Huang
71dc552750 Bug 1404839 - fix linking error for TSAN build. r=froydnj, lsalzman 2017-10-09 10:40:41 +08:00
sotaro
5984c151ad Bug 1406707 - Change WebRenderBridgeChild::BeginTransaction() as to return void r=kats 2017-10-09 09:11:49 +09:00
Sebastian Hengst
b76b8d024f merge mozilla-central to mozilla-inbound on a CLOSED TREE. r=merge a=merge on a CLOSED TREE 2017-10-08 21:01:29 +02:00
Markus Stange
194330515b Bug 1406494 - Fix spelling of the environment variable.
MozReview-Commit-ID: KE3Wejl87hg

--HG--
extra : amend_source : 62d4d8aac85a20dab055dc86938a8a2f167d162e
2017-10-07 22:11:13 -04:00
Nicholas Nethercote
d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Sebastian Hengst
3c8747ae61 merge mozilla-central to autoland. r=merge a=merge 2017-10-07 10:52:29 +02:00
Sebastian Hengst
b834f0d177 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 7Ez95T2ivfR
2017-10-07 10:37:39 +02:00
Bas Schouten
e35fb728aa Bug 1405589: Have DrawTargetCapture properly forward SupportsRegionClipping. r=dvander
MozReview-Commit-ID: 9Fu3omRFtLk
2017-10-06 16:27:41 +00:00
Tom Ritter
349f097743 Bug 1403698 Address delete-non-virtual-dtor warnings r=froydnj
MozReview-Commit-ID: 44XiqegImiT

--HG--
extra : rebase_source : 52ddc3caa3243aaef9e2397b4a28e318da101a8c
2017-10-06 11:27:35 -05:00
Sebastian Hengst
b4bb2df7c7 Backed out changeset 472a419a8d65 (bug 1371190) for build bustage, at least on Windows Static. r=backout on a CLOSED TREE 2017-10-06 15:30:44 +02:00
Sebastian Hengst
4204ccc788 Backed out changeset 88ddf39c0d79 (bug 1371190)
--HG--
rename : gfx/angle/src/common/third_party/base/anglebase/numerics/OWNERS => gfx/angle/src/common/third_party/numerics/base/numerics/OWNERS
rename : gfx/angle/src/common/third_party/base/anglebase/numerics/safe_numerics_unittest.cc => gfx/angle/src/common/third_party/numerics/base/numerics/safe_numerics_unittest.cc
rename : gfx/angle/src/common/third_party/murmurhash/LICENSE => gfx/angle/src/third_party/murmurhash/LICENSE
2017-10-06 15:29:59 +02:00
Sebastian Hengst
248c98ca35 Backed out changeset b869b8355ddd (bug 1371190) 2017-10-06 15:29:45 +02:00
Sebastian Hengst
8b34d78be3 Backed out changeset 9aa8f8c7fe61 (bug 1371190) 2017-10-06 15:29:23 +02:00
Sebastian Hengst
edae79ed0c Backed out changeset 3e5a825eac7d (bug 1371190) 2017-10-06 15:29:17 +02:00
sotaro
c8f339f971 Bug 1405970 - Remove unused argument from ProcessWebRenderParentCommands() r=nical 2017-10-06 22:10:20 +09:00
Chih-Yi Leu
0508eff3fa Bug 1371190 - Part 8: Retry D3D11CreateDevice with feature level 11_0 if 11_1 is not supported. r=jgilbert
MozReview-Commit-ID: 1PGa6CuY7GZ

--HG--
extra : rebase_source : 95ccf5e530cb2efca7f85122eb674fbca2ff607a
2017-10-04 09:27:43 +08:00
Chih-Yi Leu
1ca4342864 Bug 1371190 - Part 7: Re-apply various patches to the in-tree copy of ANGLE. r=jgilbert
Bug 1363216 - Turn off std::future for MinGW.
Bug 1331335 - Add SSE2 Flags to all of libANGLE.
Bug 1364169 - on ANGLE context creation asks for robustness but does not get it.
Bug 1370865 - Suppress more MSVC warnings in gfx/angle.
Bug 1373525 - gfx/angle: Suppress -Wimplicit-fallthrough warnings in third-party code.
Bug 1347866 - Part3: ANGLE patch uplift for bug1325733.
Bug 1347866 - Part4: ANGLE patch uplift for bug1325741.
Bug 1322746 - Add general ID3D11Texture2D to EGLStream support to ANGLE.
Bug 1366425 - Avoid losing context on out of memory error for ANGLE.

--HG--
extra : rebase_source : 2d422e188797b07194b8df0f0f1f3fd435c710e4
2017-10-04 17:27:53 +08:00
Kartikaya Gupta
1be8b0ae82 Bug 1406008 - Try to better handle an edge case in APZ hit-testing with layers-free WR. r=jrmuizel
MozReview-Commit-ID: DNAHx2e6uRF

--HG--
extra : rebase_source : 7b68cf9d94beebe469e27997077da2516b712a65
2017-10-06 09:29:46 -04:00
Kartikaya Gupta
123ea35128 Bug 1406008 - Add pref for just dumping the parent process display list. r=jrmuizel
MozReview-Commit-ID: Fdm2f5jbJ4z

--HG--
extra : rebase_source : c24893dc67e40a34ec03bcc36322c88671fe0fbf
2017-10-06 09:29:45 -04:00
Kartikaya Gupta
591b4cb445 Bug 1406119 - Ensure that we do all the necessary APZ prep before recursing. r=ethlin
Bug 1404782 added another codepath that allows the CreateWebRenderCommandsFromDisplayList
function to recurse. However recursion is tricky when APZ is enabled because
we need to do a bunch of setup and teardown to properly build event regions and
track APZ state. This patch moves the new recursion codepath inside the setup
and teardown, so that it works as intended.

MozReview-Commit-ID: C2Pwld7DdCC

--HG--
extra : rebase_source : d9ebc81ce81f416aa5eceeeed3ecf884e7fdb162
2017-10-05 13:20:57 -04:00
Markus Stange
089e60417f Bug 1406494 - Add a WR_RESOURCE_PATH environment variable that lets you set a resource override path for webrender. r=kats
This allows easier testing of shader changes. If you point this environment
variable at your gfx/webrender/res/ directory, the shaders will be read from
that directory when Firefox is launched, so you can test shader changes just by
restarting Firefox and don't need to recompile.

MozReview-Commit-ID: 9Dt6MhErnGS

--HG--
extra : rebase_source : 3c8cb83f28a6b6b00fb4437a7fd7f04dd5511633
2017-10-06 14:38:56 -04:00
Kearwood "Kip" Gilbert
f9d0915510 Bug 1405950 - Corrected bug in SurfaceFactory::NewTextClient preventing matching textures from being located in mRecycleFreePool r=jgilbert on a CLOSED TREE
- As the aLayersChannel parameter is never passed and now no longer used,
  it has been removed from the SurfaceFactory::NewTextClient.
MozReview-Commit-ID: 58K4Tbj92gO

--HG--
extra : amend_source : d25875293b59ad261d48fae537ed6d8867c15714
2017-10-06 17:38:40 +02:00
Sebastian Hengst
f7316170f3 Backed out changeset 0b70ead3e555 (bug 1405950) on suspicion of causing assertions at widget/windows/WinCompositorWidget.cpp:256 in chrome-3 tests on Windows. r=backout on a CLOSED TREE 2017-10-06 17:34:55 +02:00
Tom Ritter
596e8665ea Bug 1389965 Redefine macros to inline functions to fix MinGW build r=jfkthame
MozReview-Commit-ID: 55Rr9Tk2tdD

--HG--
extra : rebase_source : 297a74d0a95a34fe28584609057e87a1eed73317
2017-10-02 12:46:26 -05:00
Kearwood "Kip" Gilbert
58a055b1f7 Bug 1405950 - Corrected bug in SurfaceFactory::NewTextClient preventing matching textures from being located in mRecycleFreePool r=jgilbert
- As the aLayersChannel parameter is never passed and now no longer used,
  it has been removed from the SurfaceFactory::NewTextClient.
MozReview-Commit-ID: 58K4Tbj92gO

--HG--
extra : rebase_source : d9639dcd81f03f71514a5b288002b7c446805d06
2017-10-05 12:54:32 -07:00
Alexis Beingessner
c0bfb121ad Bug 1405927 - Change PushGlyphs to take webrender formats. r=jrmuizel
Also cleans up a bunch of TextDrawTarget code as fallout.

This is a significant perf win for textFrames.

MozReview-Commit-ID: J1BDkXZdvnc

--HG--
extra : rebase_source : 5a0769a53cadb55a074cfe5d718e259401fa7028
2017-10-04 13:49:51 -04:00
Kartikaya Gupta
4643bfc25a Bug 1403920 - Use RecomputeVisibility instead of ComputeVisibility to avoid triggering assertion failures. r=mattwoodrow
MozReview-Commit-ID: LPIIM516rZL

--HG--
extra : rebase_source : dd67291099d5637f0a3fc33e176a97fdc69c4c55
2017-10-05 10:45:55 -04:00
Kartikaya Gupta
ccac962efc Bug 1406047 - Schedule a composite in empty transactions that require it. r=jrmuizel
MozReview-Commit-ID: 2e3auabQvtw

--HG--
extra : rebase_source : 5acfcd250f3f73e96c66d9ef6340fe0eb78499c0
2017-10-05 11:42:41 -04:00
Sebastian Hengst
cade0f0bf3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CsjtXJM2vcs
2017-10-05 10:55:31 +02:00
Jeff Muizelaar
28dd8408d4 Bug 1405819. Remove useless PushBuiltDisplayItems call. r=kats
This removes retained mBuiltDisplayList that isn't used for anything now that
empty transactions are saner. It also ends up moving the Finalize call out
of WebRenderBridgeChild into WebRenderLayerManager so we can retain the final
size.
2017-10-04 22:34:20 -04:00
Jeff Muizelaar
bdc459cc60 Bug 1405445. Preallocate the display list buffer to a reasonable size. r=kats
This exposes the capacity of the underlying vec and sets it to the capacity of
the previous display list (mLastDisplayListSize). Doing so helps us avoid
reallocing up to the desired size every frame.

Note: the rebased version doesn't actually use a reasonable size. That will happen
in bug 1405819.
2017-10-04 22:31:51 -04:00
Jean-Yves Avenard
7c9ee7c537 Bug 1215089 - P11. Correctly use stride parameter in place of width with webrender. r=mattwoodrow
MozReview-Commit-ID: KcI6fcOgSkX

--HG--
extra : rebase_source : 2293c2be075f7a24472a8d58752982b153c5d6f5
2017-10-05 01:42:28 +02:00
Jean-Yves Avenard
1f7ad17007 Bug 1215089 - P9: Add support for 10/12 bits YUV surface with OpenGL compositor. r=mattwoodrow
MozReview-Commit-ID: BR9G7cyopz0

--HG--
extra : rebase_source : c9a29724d5c729ae8c0ae64c36428fe426ea006c
2017-09-29 21:51:29 +02:00
Jean-Yves Avenard
3cd54027fe Bug 1215089 - P7: Add support for 10/12 bits YUV surface with basic compositor. r=mattwoodrow
MozReview-Commit-ID: Ej4MbvHnSk9

--HG--
extra : rebase_source : c88e8641ce343917b4f433b515aefe653b23eaa6
2017-09-29 16:37:56 +02:00
Jean-Yves Avenard
3828ad5fbe Bug 1215089 - P6: Remove dead code. r=mattwoodrow
The method isn't called and the comments referring to it are no longer applicable.

MozReview-Commit-ID: 2FFWhj7wzht

--HG--
extra : rebase_source : 5987c52a2a220185a61a45d18a6229aa7e5d8ea3
2017-10-04 03:26:45 +02:00
Jean-Yves Avenard
0fc33ae81a Bug 1215089 - P5: Convert 10/12 bits YUV image to 8 bits prior conversion to RGB. r=mattwoodrow
For now, convert 10/12 bits YUV image to 8 bits. Native support will be tracked in bug 1379948

MozReview-Commit-ID: LOr9X5xxKY7

--HG--
extra : rebase_source : 279e00832543501616af0a4a5958917b72533a4c
2017-09-29 13:43:09 +02:00