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

3157 Коммитов

Автор SHA1 Сообщение Дата
Andi-Bogdan Postelnicu e872071d08 Bug 1671599 - Make `dom/canvas` buildable outside of `unified-build` environment. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D93753
2020-10-20 13:14:51 +00:00
Jean-Yves Avenard 117c322adb Bug 1595994 - P1C. Make libvpx and theora decoder work in the RDD process. r=mattwoodrow
We unfortunately must skip the fastpath tests on mac and linux as they will succeed on M-gli platform (WebGL in GPU) and we can't filter those out.

Depends on D91700

Differential Revision: https://phabricator.services.mozilla.com/D91914
2020-10-20 23:29:30 +00:00
Jean-Yves Avenard 648ba057e8 Bug 1595994 - P19. Add fast path readback for IOSurface image created out of process. r=jgilbert
When using a software decoder, the IOSurface type is using a YUV422 before which is only usable with webrender.
For now, disable the test that attempts to check if a fast read is possible when not running webrender.

These tests can be re-enabled once WebGL works in the GPU process.

Depends on D91695

Differential Revision: https://phabricator.services.mozilla.com/D91696
2020-10-20 23:29:02 +00:00
Jean-Yves Avenard 8f361435da Bug 1595994 - P18. Don't attempt to directly read a GPUVideoImage if it can't be. r=jgilbert
GPUVideoImage can be used on other platform than Windows; if so it will be made of an opaque handle referencing the texture as known by the PVideoBridge.
Only if a sub-description is set can you directly read the image from the content process.

Depends on D91694

Differential Revision: https://phabricator.services.mozilla.com/D91695
2020-10-20 23:28:48 +00:00
smolnar d7f403a6cc Backed out 2 changesets (bug 1631476) for causing reftest failures. CLOSED TREE
Backed out changeset 22d52c012fd0 (bug 1631476)
Backed out changeset ca9c321d4225 (bug 1631476)
2020-10-19 14:54:05 +03:00
Andreas Pehrson 9501bbf843 Bug 1631476 - Don't let CanvasRenderingContext2D::EnsureTarget lead to frame capture. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D93066
2020-10-19 07:48:32 +00:00
Bob Owen e9515cbc26 Bug 1654477 P5: Add crashtest to trigger texture handle open failures. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D93674
2020-10-16 10:57:16 +00:00
Jean-Yves Avenard 921a601d72 Bug 1670515 - Don't assume memory position of planes. r=mattwoodrow
The Cb plane doesn't have to be located after the Cr plane in memory, there are referred via pointers, all it matters is that they don't overlap.

Note that none of those extra tests serve much purpose, none of your code can generated a 3 planes YUV image where the skip value wouldn't be 0.

However, not knowing how that code is called and if it's still in use today, taking the safer approach of just fixing the existing test.

Differential Revision: https://phabricator.services.mozilla.com/D93178
2020-10-12 03:10:16 +00:00
Jeff Gilbert 860e935ec8 Bug 1663214 - Explain what format/types ReadPixels expects. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D92500
2020-10-06 19:02:58 +00:00
Jeff Gilbert 449098b7b4 Bug 1668144 - Add blocklisting for OOP WebGL. r=mattwoodrow
* Add FEATURE_THREADSAFE_GL and FEATURE_ALLOW_WEBGL_OUT_OF_PROCESS
* Add gfxVars::AllowWebglOop()
* Blocklist THREADSAFE_GL on mesa/nouveau

Differential Revision: https://phabricator.services.mozilla.com/D91879
2020-10-01 08:14:12 +00:00
Botond Ballo 01b3c7969d Bug 1667594 - Move nsLayoutUtils::RectCallback to namespace scope. r=emilio,jgilbert
This allows it to be forward-declared (while a nested class cannot be),
such that headers files that use RectCallback by pointer or reference
do not need to include nsLayoutUtils.h.

This avoids including nsLayoutUtils.h in nsRange.h.

Differential Revision: https://phabricator.services.mozilla.com/D91685
2020-09-30 21:06:47 +00:00
Botond Ballo e6c29de3e7 Bug 1667594 - Move nsLayoutUtils::SurfaceFromElementResult to its own file. r=emilio
Along with a dependent struct DirectDrawInfo.

This allows nsImageRenderer.h and CanvasRenderingContext2D.h to
avoid including nsLayoutUtils.h.

For nsImageRenderer.h in particular, a forward declaration is
not sufficient as nsImageRenderer stores SurfaceFromElementResult
by value.

A couple of method definitions elsewhere are moved out of line
to keep things compiling without including nsLayoutUtils.h in
additional headers.

Differential Revision: https://phabricator.services.mozilla.com/D91684
2020-09-30 21:05:34 +00:00
Botond Ballo 7ca62fc979 Bug 1667594 - Avoid including nsLayoutUtils.h in WebGLContext.h. r=jgilbert
It does not appear to be needed.

Differential Revision: https://phabricator.services.mozilla.com/D91683
2020-09-30 21:04:55 +00:00
Jeff Gilbert 409d7df8a9 Bug 1654459 - Default webgl.enable-surface-texture to true. r=snorp
This should match the previous behavior where non-parent processes
ignored the pref and used surface textures.

Differential Revision: https://phabricator.services.mozilla.com/D84476
2020-09-29 16:56:46 +00:00
Jeff Gilbert fe9cac8ce8 Bug 1664905 - Use gfxVars instead of GfxInfo in WebGL code. r=mattwoodrow
GfxInfo generally wants to be main-thread, so WebGL (especially
out-of-process) runs into problems sometimes.

Also rename to UNUSED_FEATURE_WEBGL_MSAA, pending removal.

Differential Revision: https://phabricator.services.mozilla.com/D91208
2020-09-27 22:18:23 +00:00
Botond Ballo 1976364433 Bug 1667594 - Avoid including nsLayoutUtils.h from various headers. r=kats
This patch covers thw low-hanging fruit: headers that either don't use
nsLayoutUtils.h at all, or where only method implementations that can
easily be moved to the .cpp file use it.

Differential Revision: https://phabricator.services.mozilla.com/D91504
2020-09-26 17:55:00 +00:00
Csoregi Natalia fd1e86b487 Backed out changeset 3dcacf3ae5a1 (bug 1664905) for assertion failures on GfxInfoBase.cpp. CLOSED TREE 2020-09-25 09:33:40 +03:00
Jeff Gilbert 3fd329a969 Bug 1664905 - Use gfxVars instead of GfxInfo in WebGL code. r=mattwoodrow
GfxInfo generally wants to be main-thread, so WebGL (especially
out-of-process) runs into problems sometimes.

Also remove obsolete FEATURE_WEBGL_MSAA.

Differential Revision: https://phabricator.services.mozilla.com/D91208
2020-09-25 05:43:24 +00:00
Razvan Maries 92ac0ffaa7 Backed out changeset 3ea0c63fe8b8 (bug 1664905) for build bustages on ClientWebGLContext.cpp. CLOSED TREE 2020-09-25 03:26:17 +03:00
Jeff Gilbert 98e2fea926 Bug 1664905 - Use gfxVars instead of GfxInfo in WebGL code. r=mattwoodrow
GfxInfo generally wants to be main-thread, so WebGL (especially
out-of-process) runs into problems sometimes.

Also remove obsolete FEATURE_WEBGL_MSAA.

Differential Revision: https://phabricator.services.mozilla.com/D91208
2020-09-24 23:46:12 +00:00
Emilio Cobos Álvarez 3cfb419d00 Bug 1665816 - CSSOM should respect rule-level property restrictions. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D90729
2020-09-21 09:57:46 +00:00
Joel Maher 0b80f4878e Bug 1664884 - migrate windows10 mochitest plain, gpu from aws to datacenter. r=bc
migrate windows10 mochitest plain and gpu fro maws to datacenter.

Differential Revision: https://phabricator.services.mozilla.com/D90451
2020-09-16 19:45:24 +00:00
unknown 7f28f17f33 Bug 1665280 - For RawBuffer reads, return a view into the shmem. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D90354
2020-09-16 07:16:48 +00:00
unknown 456d695946 Bug 1665289 - Convert WebGLChild's kDefaultCmdsShmemSize to a pref. r=lsalzman
Also reduce it from 100KB to 10KB, since we want more concurrency.

Differential Revision: https://phabricator.services.mozilla.com/D90358
2020-09-16 15:22:22 +00:00
unknown 639957d2c4 Bug 1665277 - Put "[WebGLChild] Flushed N bytes" behind GLContext::ShouldSpew. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D90352
2020-09-16 07:05:01 +00:00
Sylvestre Ledru c320561565 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D89392
2020-09-08 04:32:00 +00:00
Emilio Cobos Álvarez f363dc0c80 Bug 1662456 - Simplify hitregion accessibility code. r=nical
There's no reason it has to allocate anything.

Differential Revision: https://phabricator.services.mozilla.com/D88991
2020-09-02 23:47:17 +00:00
Emilio Cobos Álvarez 97ac4d259f Bug 1662456 - Remove HTMLCanvasElement::CountContexts and related code. r=nical
Canvas only has one context, and that assumption is pretty baked into
the code, so having an API that pretends otherwise is silly.

Differential Revision: https://phabricator.services.mozilla.com/D88990
2020-09-02 14:20:50 +00:00
Jeff Gilbert e26cc0255a Bug 1657084 - Skip huge-texture-allocation tests that stall Lin+ASAN jobs. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D89193
2020-09-02 19:12:53 +00:00
Jeff Gilbert 5c1e73b6a8 Bug 1662789 - Add IpcWebGL?/IpcWebGL+ feature annotation. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D89177
2020-09-02 19:14:53 +00:00
Mihai Alexandru Michis 03cbee1905 Backed out changeset cd08191c18c9 (bug 1662789) for causing bustages in ScopedGfxFeatureReporter
CLOSED TREE
2020-09-02 22:10:30 +03:00
Nathan Froyd cfb8fb313f Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg
This patch was generated by running:

```
perl -p -i \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF8toUTF16\((.*)\);/\1CopyUTF8toUTF16(\3, \2);/;' \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF16toUTF8\((.*)\);/\1CopyUTF16toUTF8(\3, \2);/;' \
     $FILE
```

against every .cpp and .h in mozilla-central, and then fixing up the
inevitable errors that happen as a result of matching C++ expressions with
regexes.  The errors fell into three categories:

1. Calling the convert functions with `std::string::c_str()`; these were
   changed to simply pass the string instead, relying on implicit conversion
   to `mozilla::Span`.
2. Calling the convert functions with raw pointers, which is not permitted
   with the copy functions; these were changed to invoke `MakeStringSpan` first.
3. Other miscellaneous errors resulting from over-eager regexes and/or the
   replacement not being type-aware.  These changes were reverted.

Differential Revision: https://phabricator.services.mozilla.com/D88903
2020-09-02 09:54:37 +00:00
Jeff Gilbert 6b68ac90a2 Bug 1662789 - Add IpcWebGL?/IpcWebGL+ feature annotation. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D89177
2020-09-02 17:14:23 +00:00
Jeff Gilbert 29b70b4e07 Bug 1662649 - Don't hard-assert IsSupported for pref-gated WebGL exts. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D89176
2020-09-02 17:13:53 +00:00
Emilio Cobos Álvarez 752a5d594b Bug 1662426 - Add a couple warnings in the canvas2d code. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D89111
2020-09-02 10:00:59 +00:00
Jeff Gilbert 79587135ae Bug 1661328 - Enable Mac webgl-ipc tests on Central. r=jmaher,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D89038
2020-09-01 23:29:01 +00:00
Jeff Gilbert 5a983817b7 Bug 1656991 - Handle surf alloc failure gracefully. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D89061
2020-09-01 23:29:44 +00:00
Philipp Fischbeck 7c1c23dbfc Bug 1622680 - Make dom/canvas flake8 compliant. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D88734
2020-08-30 10:20:51 +00:00
Jeff Gilbert d54712b964 Bug 1660886 - Release PWebGL when ClientWebGLContext is done with it. r=handyman,jld
Differential Revision: https://phabricator.services.mozilla.com/D88067
2020-08-27 00:50:32 +00:00
Jeff Gilbert 53d8e128a6 Bug 1627667 - Don't use nullptr with std::string. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D88357
2020-08-27 00:16:24 +00:00
David Parks 01d313e47b Bug 1659523: Secure bool and enum serialization in remote WebGL r=jgilbert
"Validate" bools to guarantee they always (de)serialize to proper values.  Require that all enums use EnumSerializer or their own special handlers.

Differential Revision: https://phabricator.services.mozilla.com/D87367
2020-08-25 16:10:21 +00:00
David Parks c7f79b6c75 Bug 1659523: Wait for SpecialPowers to set pref before running WebGL tests r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D87356
2020-08-25 21:33:15 +00:00
David Parks df6398ff5c Bug 1659523: Free WebGL command shmem when actor is destroyed r=jgilbert
Using the Shmem after our actor has lost IPC capability (say, because the other endpoint crashed) will cause the content process to also crash.  ActorDestroy is where we detect that condition.

Differential Revision: https://phabricator.services.mozilla.com/D87352
2020-08-25 21:33:15 +00:00
Andreea Pavel 4d566b2d98 Bug 1658801 - disable test_2_conformance2__extensions__ext-texture-norm16.html on android r#?intermittent-reviewers r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D87963
2020-08-25 20:54:08 +00:00
Jeff Gilbert 62f6cc5d9c Bug 1659225 - Apply UNPACK_ params only after init. r=lsalzman
+ Add asserts that we are infact in the default state.

Differential Revision: https://phabricator.services.mozilla.com/D87964
2020-08-23 06:09:33 +00:00
Jeff Gilbert 0d33c47098 Bug 1656545 - Range cannot support nullptr with non-zero length. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87528
2020-08-20 00:33:52 +00:00
Jeff Gilbert 7488d11570 Bug 1659874 - Remove unused `dummy` stack var in TexUnpackBytes::TexOrSubImage. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D87526
2020-08-19 02:01:00 +00:00
Sonia Singla 5f5c9fd7f2 Bug 1659267 - Remove usages of -moz-user-select across the Firefox codebase. r=emilio,marionette-reviewers,geckoview-reviewers,preferences-reviewers,whimboo,agi
Differential Revision: https://phabricator.services.mozilla.com/D87499
2020-08-18 23:37:51 +00:00
Matt Woodrow 31280579ce Bug 1656818 - Remove unnecessary copy from CanvasRenderingContext2D::DrawWindow. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D86894
2020-08-14 01:25:12 +00:00
Csoregi Natalia 8896454838 Backed out 4 changesets (bug 1656817, bug 1656818, bug 1658858) for bustage on RendererOGL.cpp. CLOSED TREE
Backed out changeset 9c8e4ec4e47c (bug 1656818)
Backed out changeset 92252cfd26de (bug 1656818)
Backed out changeset 1bebb79150d6 (bug 1656817)
Backed out changeset e1becb3a2fb5 (bug 1658858)
2020-08-14 00:25:44 +03:00