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

3057 Коммитов

Автор SHA1 Сообщение Дата
Gijs Kruitbosch cc39a339a0 Bug 1625500 - fix use of .then(x, x) in the tree, r=marionette-reviewers,Standard8,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D68614
2020-04-17 11:41:49 +00:00
Imanol Fernandez 025f4b6335 Bug 1630170 - Delete XRWebGLLayer Framebuffer on XRSession presentation end r=kip,jgilbert,daoshengmu
Differential Revision: https://phabricator.services.mozilla.com/D71063

--HG--
extra : moz-landing-system : lando
2020-04-15 21:58:13 +00:00
nicolaspacheco 9ac972aca4 Bug 1626776 - Delete redundant return statement at the end of a function with a void return type. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D70144

--HG--
extra : moz-landing-system : lando
2020-04-08 03:36:00 +00:00
Imanol Fernandez 9035f18d3a Bug 1614499 - Implement XRWebGLLayer r=jgilbert,daoshengmu
Differential Revision: https://phabricator.services.mozilla.com/D62809

--HG--
extra : moz-landing-system : lando
2020-04-07 18:48:13 +00:00
Andreas Farre f2fa2e633c Bug 1620594 - Part 5: Use GetMainThreadSerialEventTarget instead of SystemGroup::EventTargetFor. r=nika
This patch also tries to remove the event target entirely if it would
default to the main thread on a null event target.

Depends on D67634

Differential Revision: https://phabricator.services.mozilla.com/D67635

--HG--
extra : moz-landing-system : lando
2020-04-07 15:17:07 +00:00
Dzmitry Malyshau 3021defc28 Bug 1602133 - WebGPU presentation r=jgilbert,webidl,smaug,aosmond
This change adds support for CanvasContext presenting WebGPU via CPU readback.
The presentation is handled mostly on GPU process side by managing a list of staging buffers
and copying the contents into a WR external image (backed by an external buffer).

Differential Revision: https://phabricator.services.mozilla.com/D68032

--HG--
extra : moz-landing-system : lando
2020-04-06 22:29:18 +00:00
Cosmin Sabou 2f4d9af7d3 Backed out changeset bc6b2b003c6e (bug 1602133) for causing build bustages on CanvasRenderingContextHelper.cpp.
--HG--
extra : histedit_source : 917f3627a3e3f8dab0d806b69fc716bfd9f1d483
2020-04-06 23:46:51 +03:00
Dzmitry Malyshau 5004affc0e Bug 1602133 - WebGPU presentation r=jgilbert,webidl,smaug,aosmond
This change adds support for CanvasContext presenting WebGPU via CPU readback.
The presentation is handled mostly on GPU process side by managing a list of staging buffers
and copying the contents into a WR external image (backed by an external buffer).

Differential Revision: https://phabricator.services.mozilla.com/D68032

--HG--
extra : moz-landing-system : lando
2020-04-06 20:10:03 +00:00
Kearwood Gilbert 9136ce65cf Bug 1614496 - Implement WebXR Core Module DOM Interfaces r=jgilbert,daoshengmu,webidl,smaug,baku,imanol
Implement DOM interfaces for the WebXR Core Module. Additional work to implement the WebXR Core Module are marked with TODO (Bug #) comments within the patch and must be landed before enabling the dom.vr.webxr.enabled flag.

Differential Revision: https://phabricator.services.mozilla.com/D62369

--HG--
extra : moz-landing-system : lando
2020-04-06 19:33:32 +00:00
Bogdan Tara 7f7cc68c64 Backed out changeset 377a757c583d (bug 1602133) for webgpu related bustages CLOSED TREE 2020-04-06 21:59:57 +03:00
Dzmitry Malyshau 4c3a924336 Bug 1602133 - WebGPU presentation r=jgilbert,webidl,smaug,aosmond
This change adds support for CanvasContext presenting WebGPU via CPU readback.
The presentation is handled mostly on GPU process side by managing a list of staging buffers
and copying the contents into a WR external image (backed by an external buffer).

Differential Revision: https://phabricator.services.mozilla.com/D68032

--HG--
extra : moz-landing-system : lando
2020-04-02 19:55:01 +00:00
Sylvestre Ledru 0aa6f03cf3 Bug 1519636 - Reformat recent changes to the Google coding style r=jgilbert
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D67574

--HG--
extra : moz-landing-system : lando
2020-04-05 13:34:58 +00:00
Eric Rahm cbe7fbed12 Bug 1626444 - Remove nsAutoPtr usage from dom/canvas. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D69115

--HG--
extra : moz-landing-system : lando
2020-04-03 21:05:21 +00:00
Jonathan Kew 9ae6c0bed1 Bug 1619349 - patch 1 - Record statistics about font-matching behavior in the presContext. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D67787

--HG--
extra : moz-landing-system : lando
2020-04-02 01:38:18 +00:00
Ciure Andrei e1cb0f1e21 Backed out 4 changesets (bug 1619349, bug 1619350) for causing test_font_whitelist.html to fail CLOSED TREE
Backed out changeset ba16b09b5da0 (bug 1619349)
Backed out changeset f8ca02252dfc (bug 1619349)
Backed out changeset 01a2a527aa1a (bug 1619350)
Backed out changeset 67ee13868a44 (bug 1619350)
2020-04-02 04:34:31 +03:00
Jonathan Kew 82984492e6 Bug 1619349 - patch 1 - Record statistics about font-matching behavior in the presContext. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D67787

--HG--
extra : moz-landing-system : lando
2020-04-01 21:42:36 +00:00
Yannan Tuo ytuo 0a38e0ba85 Bug 1622654 - update while(mCaches.size()) to use .empty() r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D68677

--HG--
extra : moz-landing-system : lando
2020-04-01 21:32:54 +00:00
Jeff Gilbert cd6049bac5 Bug 1625404 - webgl.copyTexSubImage should lazily-initialize unwritten destination pixels. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D68938

--HG--
extra : moz-landing-system : lando
2020-03-31 01:00:50 +00:00
Daniel Varga dda7e26657 Backed out changeset 8717adb8b05b (bug 1625404) for causing node debugger failures
CLOSED TREE
2020-03-30 22:39:10 +03:00
Jeff Gilbert bab92087d4 Bug 1625404 - webgl.copyTexSubImage should not preserve existing dest rect contents. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D68516

--HG--
extra : moz-landing-system : lando
2020-03-30 18:50:30 +00:00
André Bargull 14ca007916 Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj
Also adds missing includes in some files, these were previously only transivitely
included through mozilla/TypeTraits.h.

Differential Revision: https://phabricator.services.mozilla.com/D68561

--HG--
extra : moz-landing-system : lando
2020-03-28 16:00:09 +00:00
André Bargull 2712714d84 Bug 1625138 - Part 35: Replace mozilla::TrueType with std::true_type. r=froydnj,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D68554

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:20 +00:00
André Bargull 9de017ffb8 Bug 1625138 - Part 33: Replace mozilla::IntegralConstant with std::integral_constant. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68552

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:19 +00:00
André Bargull cf0b1e89e9 Bug 1625138 - Part 30: Replace mozilla::RemoveCV with std::remove_cv. r=froydnj,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D68547

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:18 +00:00
André Bargull cae4e1fdbc Bug 1606962: Replace mozilla::EnableIf with std::enable_if. r=froydnj,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D68401

--HG--
extra : moz-landing-system : lando
2020-03-28 13:35:31 +00:00
André Bargull 3ee851a1a5 Bug 1625138 - Part 25: Replace mozilla::RemoveReference with std::remove_reference. r=froydnj,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D68380

--HG--
extra : moz-landing-system : lando
2020-03-28 14:16:19 +00:00
Simon Giesecke 0cc5c6e63f Bug 1052940 - Make Maybe<T> only declare copy/move operations if T is copyable/movable. r=froydnj,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D68172

--HG--
extra : moz-landing-system : lando
2020-03-27 14:10:45 +00:00
Jeff Gilbert 0e2a962631 Bug 1624944 - Uniform data uploads should accept SharedArrayBuffers. r=webidl,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D68508

--HG--
extra : moz-landing-system : lando
2020-03-27 08:37:28 +00:00
Jeff Gilbert b672f22f08 Bug 1624768 - Forbid multisampled unsized DEPTH_STENCIL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D68135

--HG--
extra : moz-landing-system : lando
2020-03-25 05:40:54 +00:00
Brindusan Cristian 4d9cd18676 Backed out changeset 58d155b0b54a (bug 1624768) for mochitest failures at test_2_conformance2__renderbuffers__multisampled-depth-renderbuffer-initialization.html. 2020-03-25 06:00:00 +02:00
Jeff Gilbert 0e9c40e7e2 Bug 1624768 - Forbid multisampled unsized DEPTH_STENCIL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D68135

--HG--
extra : moz-landing-system : lando
2020-03-25 01:40:41 +00:00
Jeff Gilbert d40a464203 Bug 1622536 - Treat js::Scalar::MaxTypedArrayViewType like Uint8Array for webgl.compressedTexImage. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D67396

--HG--
extra : moz-landing-system : lando
2020-03-19 09:15:22 +00:00
sotaro b7a705dcef Bug 1623254 - Re-create DrawTarget of CanvasRenderingContext2D when the DrawTarget becomes invalid r=nical
Differential Revision: https://phabricator.services.mozilla.com/D67274

--HG--
extra : moz-landing-system : lando
2020-03-18 10:38:32 +00:00
Emilio Cobos Álvarez d35fad8391 Bug 1623147 - Don't flush style/frames unconditionally in CanvasRenderingContext2D::UpdateFilter(). r=mstange
I saw this in profiles.

Differential Revision: https://phabricator.services.mozilla.com/D67225

--HG--
extra : moz-landing-system : lando
2020-03-17 22:14:43 +00:00
Chris Fronk d5b004443b Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-17 12:42:12 +00:00
adroitwhiz ec26b3fc27 Bug 1567544 - set composite op in DrawDirectlyToCanvas r=jrmuizel
When drawing an SVG image onto a `CanvasRenderingContext2D`, a different code path is taken which calls `DrawDirectlyToCanvas`. Previously, that function always used the default composite operation when drawing. Now it will use the canvas context's current `globalCompositeOperation`.

Differential Revision: https://phabricator.services.mozilla.com/D66900

--HG--
extra : moz-landing-system : lando
2020-03-16 13:42:06 +00:00
Jeff Gilbert a6207b9e02 Bug 1621523 - Revendor WebGL CTS with new test.
Also remark failures.

Differential Revision: https://phabricator.services.mozilla.com/D66828

--HG--
extra : moz-landing-system : lando
2020-03-14 08:11:52 +00:00
Jeff Gilbert f612c0ba89 Bug 1621523 - WebGL: Don't Present on no-op Resize. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D66827

--HG--
extra : moz-landing-system : lando
2020-03-14 08:27:28 +00:00
Razvan Maries 39c5161f74 Backed out 2 changesets (bug 1621523) for perma failures on perma failures on test_2_conformance2__rendering__framebuffer-render-to-layer.html. CLOSED TREE
Backed out changeset 12e09fef3c3f (bug 1621523)
Backed out changeset c997932b6bfe (bug 1621523)
2020-03-14 03:18:42 +02:00
Jeff Gilbert 2e250c45f3 Bug 1621523 - Revendor WebGL CTS with new test.
Differential Revision: https://phabricator.services.mozilla.com/D66828

--HG--
extra : moz-landing-system : lando
2020-03-14 00:33:06 +00:00
Jeff Gilbert 75333bbd2c Bug 1621523 - WebGL: Don't Present on no-op Resize. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D66827

--HG--
extra : moz-landing-system : lando
2020-03-14 00:33:04 +00:00
shindli b02b3a6e1a Backed out changeset a08637fb30c8 (bug 1143478) for causing bustages in /builds/worker/checkouts/gecko/ipc/mscom/Registration.cpp CLOSED TREE
--HG--
rename : mfbt/CompactPair.h => mfbt/Pair.h
2020-03-11 14:30:54 +02:00
Chris Fronk a27e438c2d Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-11 12:18:13 +00:00
Mike Hommey 082a30140e Bug 1621518 - Fix build errors with -Werror=format-security with GCC. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D66355

--HG--
extra : moz-landing-system : lando
2020-03-11 03:30:11 +00:00
Andrew Osmond 91b071ed14 Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel
gfx::Color is currently misused in many places. The DrawTargets expect
the color space to be in device space, e.g. what we are actually going
to draw using. Everything sitting above generally deals with sRGB, as
specified in CSS. Sometimes we missed the conversion from sRGB to device
space when issuing draw calls, and similarly sometimes we converted the
color to device space twice.

This patch splits the type in two. sRGBColor and DeviceColor now
represent sRGB and device color spaces respectively. DrawTarget only
accepts DeviceColor, and one can get a DeviceColor from an sRGBColor via
the ToDeviceColor helper API. The reftests now pass with color
management enabled for everything (e.g. CSS) instead of just tagged
raster images.

There will be a follow up patch to enable color management everywhere by
default on all supported platforms.

Differential Revision: https://phabricator.services.mozilla.com/D64771

--HG--
extra : moz-landing-system : lando
2020-03-09 14:16:17 +00:00
Jeff Gilbert 72e401a747 Bug 1620876 - Handle "//\n" webglsl comments. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D65929

--HG--
extra : moz-landing-system : lando
2020-03-09 03:19:25 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Boris Zbarsky c878a8bb26 Bug 1619112 part 2. Pass char literals instead of char16_t literals into ErrorResult throwing methods. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D65538

--HG--
extra : moz-landing-system : lando
2020-03-06 21:04:58 +00:00
Jeff Gilbert 744ecc654e Bug 1618325 - Check IsContextLost in ReadPixels. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D65435

--HG--
extra : moz-landing-system : lando
2020-03-05 15:54:13 +00:00
Imanol Fernandez ec6ba5a531 Bug 1617751 - Ensure that GLScreenBuffer back buffer is created using the newly attached factory. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D64183

--HG--
extra : moz-landing-system : lando
2020-03-03 00:43:10 +00:00
Jeff Gilbert d508feab0c Bug 1617512 - Delete dom/canvas/test/webgl-conf/generated and regenerate.
There were a bunch of orphaned files, and this cleans them out.

Differential Revision: https://phabricator.services.mozilla.com/D64218

--HG--
extra : moz-landing-system : lando
2020-02-28 02:47:02 +00:00
Jeff Gilbert 61101047e0 Bug 1617512 - Fix WebGLSL comment parsing code. r=lsalzman
MSVC's std::regex implementation has issues with the
whole-comment-recognition regexes we had before, so we keep it simple
with very minimal regex use.

Test: https://www.khronos.org/registry/webgl/sdk/tests/conformance/glsl/preprocessor/comments.html?webglVersion=1&quiet=0&quick=1

Differential Revision: https://phabricator.services.mozilla.com/D64212

--HG--
extra : moz-landing-system : lando
2020-02-28 09:16:29 +00:00
Razvan Maries f31a59f9af Backed out changeset e3a8032a4a14 (bug 1617751) for Android webgl failures. CLOSED TREE 2020-02-27 20:29:04 +02:00
Andrew McCreight 4babb2b5ab Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

Differential Revision: https://phabricator.services.mozilla.com/D60197

--HG--
extra : moz-landing-system : lando
2020-02-27 17:39:15 +00:00
Ciure Andrei 00dd87f6f4 Backed out changeset d407a28318e6 (bug 1609815) for causing windows ming bustages CLOSED TREE
--HG--
extra : histedit_source : b2c748e31e0f6ba8fcf9960a336e0bbd361b07e6
2020-02-27 07:05:19 +02:00
Andrew McCreight b197e1f783 Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

Differential Revision: https://phabricator.services.mozilla.com/D60197

--HG--
extra : moz-landing-system : lando
2020-02-27 04:43:48 +00:00
Emilio Cobos Álvarez de54b68ce7 Bug 1617600 - Prototype :focus-visible behind a flag. r=smaug
The heuristic is that we show focus outlines for unknown or key focus, and not
for mouse / touch.

This is probably not the final heuristic we take, but this allows people to play
with it and file bugs.

Once this is mature enough we should remove :-moz-focusring in favor of
:focus-visible.

Differential Revision: https://phabricator.services.mozilla.com/D63861

--HG--
extra : moz-landing-system : lando
2020-02-26 14:16:20 +00:00
Jeff Gilbert 91ab854fc8 Bug 1617785 - Optimize GetDrawFetchLimits and vertexAttribPointer. r=lsalzman
Our goal here is to just be fast enough that we don't need to cache.

Differential Revision: https://phabricator.services.mozilla.com/D64215

--HG--
extra : moz-landing-system : lando
2020-02-26 00:44:26 +00:00
Arthur Iakab c4419e46fe Backed out 2 changesets (bug 1617512) for causing mochitest failures on test_conformance__ogles__GL__build__build_049_to_056.html
CLOSED TREE

Backed out changeset ceff9529d28c (bug 1617512)
Backed out changeset ccaa83aabee7 (bug 1617512)
2020-02-26 03:27:01 +02:00
Noemi Erli 4fb19079c8 Backed out 3 changesets (bug 1617600) for causing wpt failures in focus-visible-009.html CLOSED TREE
Backed out changeset 73d1a5e10337 (bug 1617600)
Backed out changeset b722714830cd (bug 1617600)
Backed out changeset 45464d926bf0 (bug 1617600)
2020-02-26 01:46:31 +02:00
Jeff Gilbert 1d8103c74a Bug 1617512 - Delete dom/canvas/test/webgl-conf/generated and regenerate.
There were a bunch of orphaned files, and this cleans them out.

Differential Revision: https://phabricator.services.mozilla.com/D64218

--HG--
extra : moz-landing-system : lando
2020-02-25 22:45:43 +00:00
Jeff Gilbert e626a14f1b Bug 1617512 - Fix WebGLSL comment parsing regex. r=lsalzman
Test: https://www.khronos.org/registry/webgl/sdk/tests/conformance/glsl/preprocessor/comments.html?webglVersion=1&quiet=0&quick=1

Differential Revision: https://phabricator.services.mozilla.com/D64212

--HG--
extra : moz-landing-system : lando
2020-02-25 22:45:41 +00:00
Imanol Fernandez eb9350894f Bug 1617751 - Ensure that GLScreenBuffer back buffer is created using the newly attached factory r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D64183

--HG--
extra : moz-landing-system : lando
2020-02-25 21:05:37 +00:00
Kris Maglione c31aa68fb4 Bug 1535617: Part 2 - Clear weak references for most cycle collected objects on unlink. r=mccr8
This covers most cycle collected objects which support weak references, but
not the ones which inherit from a cycle collected class and don't do any cycle
collection on their own.

Differential Revision: https://phabricator.services.mozilla.com/D63962

--HG--
extra : moz-landing-system : lando
2020-02-25 19:44:39 +00:00
Emilio Cobos Álvarez 490c70ecc0 Bug 1617600 - Prototype :focus-visible behind a flag. r=smaug
The heuristic is that we show focus outlines for unknown or key focus, and not
for mouse / touch.

This is probably not the final heuristic we take, but this allows people to play
with it and file bugs.

Once this is mature enough we should remove :-moz-focusring in favor of
:focus-visible.

Differential Revision: https://phabricator.services.mozilla.com/D63861

--HG--
extra : moz-landing-system : lando
2020-02-25 17:58:28 +00:00
Bob Owen a8de05ad4d Bug 1598585 Part 4: Notify the content process of a canvas device change. r=jrmuizel
This sends a message to the content process on device reset/change. The content
process clears the CanvasImageCache and canvas TextureClients and then records a
new event, so the translator knows it has finished.

Differential Revision: https://phabricator.services.mozilla.com/D60890

--HG--
extra : moz-landing-system : lando
2020-02-24 11:21:27 +00:00
Jeff Gilbert 49926cf5f0 Bug 1617326 - Fix WebGL CTS/conformance2/extensions/* on Windows. r=lsalzman
* Multiview detach shouldn't check for INVALID_VALUE.
* Forbid blitting to multiview.
* GetSamplerParameter(ANISOTROPIC) should work, modulo enabledness.

Differential Revision: https://phabricator.services.mozilla.com/D63743

--HG--
extra : moz-landing-system : lando
2020-02-23 04:22:54 +00:00
Razvan Maries b5b83a0cb5 Backed out changeset e4c9e943a369 (bug 1617326) for Mochitest perma failures on test_2_conformance2__extensions__ext-texture-filter-anisotropic.html. 2020-02-23 01:27:14 +02:00
Jeff Gilbert cf873c7ace Bug 1617326 - Fix WebGL CTS/conformance2/extensions/* on Windows. r=lsalzman
* Multiview detach shouldn't check for INVALID_VALUE.
* Forbid blitting to multiview.
* GetSamplerParameter(ANISOTROPIC) should work, modulo enabledness.

Differential Revision: https://phabricator.services.mozilla.com/D63743

--HG--
extra : moz-landing-system : lando
2020-02-22 20:51:09 +00:00
Jeff Gilbert c1f55f66df Bug 1616173 - Revendor WebGL CTS for v75. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63569

--HG--
rename : dom/canvas/test/webgl-conf/checkout/conformance2/uniforms/draw-with-uniform-blocks.html => dom/canvas/test/webgl-conf/checkout/conformance2/uniforms/large-uniform-buffers.html
rename : dom/canvas/test/webgl-conf/checkout/conformance/extensions/ext-texture-filter-anisotropic.html => dom/canvas/test/webgl-conf/checkout/js/tests/ext-texture-filter-anisotropic.js
extra : moz-landing-system : lando
2020-02-21 17:55:19 +00:00
Boris Zbarsky 0223215a5b Bug 1614225. Fix validity checks in createPattern to follow the spec. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D63409

--HG--
extra : moz-landing-system : lando
2020-02-21 18:36:01 +00:00
Jeff Gilbert e5d08f59ba Bug 1617091 - Remove DynDGpuManager, add webgl.power-preference-override. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63599

--HG--
extra : moz-landing-system : lando
2020-02-21 04:00:07 +00:00
Jeff Gilbert 1abd55a851 Bug 1616715 - Make ReadPixelDesc per-call. r=lsalzman
GetSurfaceSnapshot (and similar) want to ReadPixels the backbuffer,
without having to navigate the GL PIXEL_PACK state.
Since this is cold cold code, it's nice to reduce the backend state by
making ReadPixelsDesc/PixelPackState per-call, and tracked by the
client. Arguably, PIXEL_PACK_BUFFER should be per-call as well.

Differential Revision: https://phabricator.services.mozilla.com/D63587

--HG--
extra : moz-landing-system : lando
2020-02-21 03:12:41 +00:00
Jeff Gilbert 011c0a1fd7 Bug 1616715 - SurfaceFromElement gets alpha Premult unless opt-in to NonPremult. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63421

--HG--
extra : moz-landing-system : lando
2020-02-21 02:27:08 +00:00
Jeff Gilbert 74a66ab98d Bug 1617082 - Don't query zero uniform lists. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63592

--HG--
extra : moz-landing-system : lando
2020-02-21 03:11:23 +00:00
Csoregi Natalia 0d667d17dd Backed out changeset 5005fe56b7b0 (bug 1616715) for failures on test_2_conformance2__canvas__to-data-url-with-pack-params.html. CLOSED TREE 2020-02-21 01:33:48 +02:00
Jeff Gilbert 95d86374ba Bug 1616715 - SurfaceFromElement gets alpha Premult unless opt-in to NonPremult. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63421

--HG--
extra : moz-landing-system : lando
2020-02-20 20:52:10 +00:00
Andrew Halberstadt 4d752c4ca7 Bug 1616368 - [reftest] Replace 'default-preferences' with 'defaults' r=dbaron
With the new 'defaults' key being added, 'default-preferences' is now
redundant. This commit converts all existing uses of 'default-preferences' to
use 'defaults' instead.

Differential Revision: https://phabricator.services.mozilla.com/D63247

--HG--
extra : moz-landing-system : lando
2020-02-20 18:47:54 +00:00
Simon Giesecke 9350e6b741 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

Differential Revision: https://phabricator.services.mozilla.com/D62604

--HG--
extra : moz-landing-system : lando
2020-02-20 11:40:14 +00:00
Jeff Gilbert b3e7d58623 Bug 1616457 - Fix failures in conformance/extensions/webgl-draw-buffers. r=lsalzman
We must not check frag output type agreement if colorMask(0,0,0,0).
We must allow drawing with no frag outputs, leaving color values
unchanged. (evidently this is used enough that we spec'd it this way?)

Differential Revision: https://phabricator.services.mozilla.com/D63287

--HG--
extra : moz-landing-system : lando
2020-02-19 20:47:30 +00:00
Dorel Luca d5f9df8ee1 Backed out 2 changesets (bug 1613985) for Build bustage on Windows2012. CLOSED TREE
Backed out changeset fd177b40b561 (bug 1613985)
Backed out changeset fb6d62b7f28d (bug 1613985)
2020-02-19 22:22:41 +02:00
Simon Giesecke 59b23375c0 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

Differential Revision: https://phabricator.services.mozilla.com/D62604

--HG--
extra : moz-landing-system : lando
2020-02-19 18:05:38 +00:00
Simon Giesecke 723b05dfb6 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/canvas. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D63142

--HG--
extra : moz-landing-system : lando
2020-02-18 21:08:00 +00:00
Jeff Gilbert 80a5c82a92 Bug 1616455 - readPixels should treat uint8clamped as uint8. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63284

--HG--
extra : moz-landing-system : lando
2020-02-19 03:34:47 +00:00
Jeff Gilbert 66b0d76979 Bug 1615487 - Don't cache thrashing VAOs to mDrawFetchCache. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63013

--HG--
extra : moz-landing-system : lando
2020-02-16 15:38:25 +00:00
Jeff Gilbert 5a3182940a Bug 1615487 - Make CachedDrawFetchLimits move-only, remove copy. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63012

--HG--
extra : moz-landing-system : lando
2020-02-16 15:37:35 +00:00
Jeff Gilbert 410a57c757 Bug 1616132 - ATTACHED_SHADERS must count non-null slots. r=lsalzman
It was always returning 2.

Differential Revision: https://phabricator.services.mozilla.com/D63110

--HG--
extra : moz-landing-system : lando
2020-02-18 03:21:13 +00:00
Jeff Gilbert cc0f990650 Bug 1615851 - layer::Image::GetAsSourceSurface is fallible. r=lsalzman
This fixes a crash, where we expected it to be infallible.

Differential Revision: https://phabricator.services.mozilla.com/D63005

--HG--
extra : moz-landing-system : lando
2020-02-16 04:07:20 +00:00
Jeff Gilbert d5933e1d25 Bug 1615750 - InvalidateFramebuffer DEPTH_STENCIL too on WebGL Present. r=lsalzman
Previously just the color attachment.

Differential Revision: https://phabricator.services.mozilla.com/D62978

--HG--
extra : moz-landing-system : lando
2020-02-15 04:15:03 +00:00
Boris Zbarsky 6c66fa85a4 Bug 1615022 part 2. Require an rvalue reference to reject a Promise with an ErrorResult. r=farre,kvark
The rejection process consumes the ErrorResult, so an rvalue reference is the honest thing here.

Differential Revision: https://phabricator.services.mozilla.com/D62632

--HG--
extra : moz-landing-system : lando
2020-02-14 15:42:30 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
shindli 91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Emilio Cobos Álvarez d7841a5f17 Bug 1614208 - Remove some include dependencies in nsStyleConsts.h. r=jfkthame,jgilbert
We include it everywhere because it's included from gfxTypes.h.

This should avoid including all the generated bindings _everywhere_.

Differential Revision: https://phabricator.services.mozilla.com/D62174

--HG--
extra : moz-landing-system : lando
2020-02-11 01:23:37 +00:00
MahakBansal d58f7fe1b6 Bug 1614148 - Removes unused variable 'kMinMaxColorAttachments' in WebGLContextValidate.cpp r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D62159

--HG--
extra : moz-landing-system : lando
2020-02-11 01:07:26 +00:00
Viresh Gupta 96552e75e7 Bug 1612981 - Remove MatrixAxBToRowMajor r=jgilbert
Remove unused code from dom/canvas/WebGLContextGL.cpp

Differential Revision: https://phabricator.services.mozilla.com/D61664

--HG--
extra : moz-landing-system : lando
2020-02-11 01:11:27 +00:00
Jeff Gilbert 165c15a8f3 Bug 1613106 - Add missing context loss check. r=lsalzman
The call to InitializeCanvasRenderer earlier in the function can lose
the context.

Differential Revision: https://phabricator.services.mozilla.com/D62100

--HG--
extra : moz-landing-system : lando
2020-02-07 20:19:43 +00:00
Imanol Fernandez 71954016da Bug 1613712 - Pass a correct compositorConnection instead of null ptr in the GLScreenBuffer::CreateFactory call used to ensure that a not added to DOM canvas is ready for VR. r=jgilbert
Fix regression from the WebGL remoting client/host refactor.

Differential Revision: https://phabricator.services.mozilla.com/D61878

--HG--
extra : moz-landing-system : lando
2020-02-07 01:52:43 +00:00
Jeff Gilbert b9a4e49ccf Bug 1611837 - Allow null `data` if `dataLen` is zero. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D61953

--HG--
extra : moz-landing-system : lando
2020-02-07 03:17:26 +00:00
Boris Zbarsky 9b0b56bfc7 Bug 1612213 part 3. Switch Promise::RejectWithDOMException consumers to new convenience methods. r=smaug,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D61269

--HG--
extra : moz-landing-system : lando
2020-02-03 20:37:32 +00:00
Boris Zbarsky b88d5ac5a8 Bug 1612213 part 1. Switch most consumers of ThrowDOMException to the new methods. r=smaug,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D61267

--HG--
extra : moz-landing-system : lando
2020-02-03 20:19:11 +00:00
Jeff Gilbert cf7cbbf78e Bug 1608311 - Handle WebGL SetDimensions when context is lost. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D61376

--HG--
extra : moz-landing-system : lando
2020-01-31 16:14:30 +00:00
Jeff Gilbert 3870cfafe7 Bug 1608330 - Use Run<RPROC> instead of calling Present directly. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D60091

--HG--
extra : moz-landing-system : lando
2020-01-16 03:09:13 +00:00
Emilio Cobos Álvarez a25126cd0d Bug 1611181 - Make direction use an enum class. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D60857

--HG--
extra : moz-landing-system : lando
2020-01-24 11:46:14 +00:00
Jeff Gilbert 3c0ff11f59 Bug 1609908 - Reset WebGL layer on resize. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D60755

--HG--
extra : moz-landing-system : lando
2020-01-23 22:32:57 +00:00
Edgar Chen 9e846bd48a bug 1610296 - Rename TypedArray_base::ComputeLengthAndData to TypedArray_base::ComputeState; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D60514

--HG--
extra : moz-landing-system : lando
2020-01-23 03:22:06 +00:00
Imanol Fernandez 18b1652ebc Bug 1611125 - Initialize xrCompatible in ClientWebGLContext::SetContextOptions r=jgilbert
xrCompatible was not initialized in SetContextOptions

Differential Revision: https://phabricator.services.mozilla.com/D60829

--HG--
extra : moz-landing-system : lando
2020-01-23 21:36:48 +00:00
Jeff Gilbert 96844b341a Bug 1610383 - Restrict BufferData size to int32_t for ANGLE. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D60778

--HG--
extra : moz-landing-system : lando
2020-01-23 16:07:13 +00:00
Edgar Chen c4e4fdbd64 Bug 1575425 - Part 5: Remove DataAllowShared and LengthAllowShared from TypedArray bindings; r=bzbarsky
There's no need for two explicit APIs as we get safety from the IDL layer. And
treating a SharedArrayBuffer as an empty buffer is wrong too.

Differential Revision: https://phabricator.services.mozilla.com/D60003

--HG--
extra : moz-landing-system : lando
2020-01-22 13:09:49 +00:00
Edgar Chen 8346d0956a Bug 1575425 - Part 4: Remove manually checking shareness in various APIs implmentation; r=bzbarsky
Now we support [AllowShared] in WebIDL, we don't need to manually check shareness
and throw exception if API don't accept SharedArrayBuffer, the binding will handle
it.

Differential Revision: https://phabricator.services.mozilla.com/D60001

--HG--
extra : moz-landing-system : lando
2020-01-23 13:51:04 +00:00
Mark Banner 2b7e2e5f7b Bug 1607172 - Move dom third-party entries across to ThirdPartyPaths.txt, and clean up .eslintignore for dom. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D59694

--HG--
extra : moz-landing-system : lando
2020-01-21 20:46:28 +00:00
Mihai Alexandru Michis 2dab66d06e Backed out 9 changesets (bug 1607172, bug 1609998, bug 1608799) for causing xpcshell failures in test_parser.js
CLOSED TREE

Backed out changeset 7753083b67dd (bug 1609998)
Backed out changeset e6f5aac734ab (bug 1608799)
Backed out changeset 90ea35966b73 (bug 1608799)
Backed out changeset 6fafa451b3f9 (bug 1608799)
Backed out changeset e07a4aea2ae1 (bug 1608799)
Backed out changeset d69d6dfdccad (bug 1607172)
Backed out changeset 93023b1b6153 (bug 1607172)
Backed out changeset 99ce7a56080e (bug 1607172)
Backed out changeset 20aa5934c785 (bug 1607172)
2020-01-21 21:44:03 +02:00
Mark Banner 1856b4108d Bug 1607172 - Move dom third-party entries across to ThirdPartyPaths.txt, and clean up .eslintignore for dom. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D59694

--HG--
extra : moz-landing-system : lando
2020-01-21 17:00:27 +00:00
Sylvestre Ledru 187e9bafaf Bug 1519636 - Automatically reformat recent changes using clang-format r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D60354

--HG--
extra : moz-landing-system : lando
2020-01-21 09:51:27 +00:00
Ehsan Akhgari 3f9530ed27 Bug 1588980 - Part 1: Hide HTMLCanvasElement.mozGetAsFile behind a preference; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D60283

--HG--
extra : moz-landing-system : lando
2020-01-20 22:03:13 +00:00
Jonathan Kew 908689bbe1 Bug 1102584 - patch 2 - Implement extended attributes of the TextMetrics object (preffed off by default). r=lsalzman,bzbarsky
This is the main work of Richard Matheson's original patch, updated to current trunk code
and with the new attributes put behind prefs. Because some of the attributes may be more
stable than others (there was a move by Google to change how baselines are represented,
but then this was retracted because Safari is already shipping per the existing spec; and
we have some differences in how we handle font metrics between platforms which may affect
the font ascent/descent values), I've split this into several prefs so that we have the
possibility of enabling just the more stable (and/or more urgently requested) attributes.

(Note that this echos Google's approach per comment 30 of initially shipping part of the API.)

Depends on D59678

Differential Revision: https://phabricator.services.mozilla.com/D59679

--HG--
extra : moz-landing-system : lando
2020-01-18 19:51:04 +00:00
Jonathan Kew 71b03a3108 Bug 1102584 - patch 1 - Provide somewhat better defaults for hanging and ideographic baseline alignment of canvas text. r=lsalzman
This is extracted from the original patch by Richard Matheson; it's not strictly necessary
to implementing the additional TextMetrics attributes, but OTOH if we're going to potentially
expose baseline attributes, it seems sensible to make them somewhat more meaningful than the
fallbacks in the current code.

Eventually we should use baseline tables from the font, but (a) we don't have support for
that in the back-end font code, and (b) very few fonts provide the data anyway, so while this
isn't perfect, for now it's the best we can do.

Differential Revision: https://phabricator.services.mozilla.com/D59678

--HG--
extra : moz-landing-system : lando
2020-01-20 16:44:29 +00:00
Cosmin Sabou 38f8a8661d Backed out 2 changesets (bug 1588980) for mochitest failures on dom/canvas/test/mochitest.ini.
Backed out changeset dc0733b283e7 (bug 1588980)
Backed out changeset aaff3fef7fd6 (bug 1588980)

--HG--
extra : rebase_source : 2ec145cfc7d648cf78b927cce22210070ef579a2
2020-01-20 18:06:11 +02:00
Ehsan Akhgari 6ba1137eeb Bug 1588980 - Part 1: Hide HTMLCanvasElement.mozGetAsFile behind a preference; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D60283

--HG--
extra : moz-landing-system : lando
2020-01-18 05:06:25 +00:00
Andreea Pavel 10a5ef8799 Backed out 3 changesets (bug 1102584) for failing wpt at 2d.text.measure.actualBoundingBox.html
Backed out changeset 947829830dd5 (bug 1102584)
Backed out changeset 967170ab891c (bug 1102584)
Backed out changeset 59069d4514d0 (bug 1102584)
2020-01-18 21:47:49 +02:00
Sylvestre Ledru cc2040bf21 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

Differential Revision: https://phabricator.services.mozilla.com/D58217

--HG--
extra : moz-landing-system : lando
2020-01-18 13:48:34 +00:00
Dorel Luca 506e65bcab Backed out changeset bbb39655cf71 (bug 1605934) for build bustage in widget/gtk/mozwayland/mozwayland.c 2020-01-18 15:39:55 +02:00
Sylvestre Ledru 6689a37527 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

Differential Revision: https://phabricator.services.mozilla.com/D58217

--HG--
extra : moz-landing-system : lando
2020-01-18 13:16:39 +00:00
Jonathan Kew 7bb62c5559 Bug 1102584 - patch 2 - Implement extended attributes of the TextMetrics object (preffed off by default). r=lsalzman,bzbarsky
This is the main work of Richard Matheson's original patch, updated to current trunk code
and with the new attributes put behind prefs. Because some of the attributes may be more
stable than others (there was a move by Google to change how baselines are represented,
but then this was retracted because Safari is already shipping per the existing spec; and
we have some differences in how we handle font metrics between platforms which may affect
the font ascent/descent values), I've split this into several prefs so that we have the
possibility of enabling just the more stable (and/or more urgently requested) attributes.

(Note that this echos Google's approach per comment 30 of initially shipping part of the API.)

Depends on D59678

Differential Revision: https://phabricator.services.mozilla.com/D59679

--HG--
extra : moz-landing-system : lando
2020-01-18 05:01:14 +00:00
Jonathan Kew 44024bcdad Bug 1102584 - patch 1 - Provide somewhat better defaults for hanging and ideographic baseline alignment of canvas text. r=lsalzman
This is extracted from the original patch by Richard Matheson; it's not strictly necessary
to implementing the additional TextMetrics attributes, but OTOH if we're going to potentially
expose baseline attributes, it seems sensible to make them somewhat more meaningful than the
fallbacks in the current code.

Eventually we should use baseline tables from the font, but (a) we don't have support for
that in the back-end font code, and (b) very few fonts provide the data anyway, so while this
isn't perfect, for now it's the best we can do.

Differential Revision: https://phabricator.services.mozilla.com/D59678

--HG--
extra : moz-landing-system : lando
2020-01-14 03:46:44 +00:00
Jeff Gilbert 441d2d2d6c Bug 1609819 - getParameter(DRAW_BUFFERn): Check with FB not GL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D60202

--HG--
extra : moz-landing-system : lando
2020-01-17 03:40:19 +00:00
Jeff Gilbert efbb6e7d0b Bug 1608644 - Don't require float/half-float RBs for WebGL2. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D60193

--HG--
extra : moz-landing-system : lando
2020-01-17 03:39:56 +00:00
Jeff Gilbert 51cee2c584 Bug 1609579 - WebGLSamplers should handle TEXTURE_MAX_ANISOTROPY. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D60092

--HG--
extra : source : 7f724ded7131469ea1264a47871de593cf189b11
2020-01-16 04:52:32 +00:00
shindli a45387ef5e Backed out changeset 7f724ded7131 (bug 1609579) for causing valgrind bustage CLOSED TREE 2020-01-16 09:22:15 +02:00
Jeff Gilbert 0203647c26 Bug 1609579 - WebGLSamplers should handle TEXTURE_MAX_ANISOTROPY. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D60092

--HG--
extra : moz-landing-system : lando
2020-01-16 04:52:32 +00:00
Imanol Fernandez acf609f3d9 Bug 1608500 - Set SurfaceTexture factory into the VR GLScreenBuffer. r=jgilbert
The VR ScreenBuffer is created with the default SurfaceFactory_Basic. We need to morph the screen to use the correct SurfaceTexture factory.

Differential Revision: https://phabricator.services.mozilla.com/D60007

--HG--
extra : moz-landing-system : lando
2020-01-15 21:18:00 +00:00
Jeff Gilbert 2c2c0487c0 Bug 1609006 - 0x0 canvas yields 1x1 webgl context. r=lsalzman
Also, always resize, not just on change. (As per spec)

Differential Revision: https://phabricator.services.mozilla.com/D59967

--HG--
extra : moz-landing-system : lando
2020-01-15 05:13:53 +00:00
Emilio Cobos Álvarez 8b5f68f4e9 Bug 1608729 - Initialize some variables in WebGLProgram. r=jgilbert
Otherwise GCC warns about the variable being possibly uninitialized, and it's
right if you could ever have a shader with a wrong type.

Depends on D59647

Differential Revision: https://phabricator.services.mozilla.com/D59648

--HG--
extra : moz-landing-system : lando
2020-01-13 19:59:47 +00:00
Edwin Takahashi 2b5519636e Bug 1602863 - run mochitest-webgl suites on ubuntu1804 docker image r=jmaher
Changes:

Run mochitest-webgl suites on ubuntu1804.

Update the expectation of a test to remove the `headless` specification.

Differential Revision: https://phabricator.services.mozilla.com/D59401

--HG--
extra : moz-landing-system : lando
2020-01-09 20:49:35 +00:00
Edwin Takahashi 5046dc5402 Bug 1536179 - cast the PosixPath to a string r=jgilbert
Changes:

Silence the `os.chdir` posixpath error when run in python3.

Differential Revision: https://phabricator.services.mozilla.com/D59254

--HG--
extra : moz-landing-system : lando
2020-01-09 18:25:11 +00:00
Jeff Gilbert f26e4d546b Bug 1477756 - Fix non-webgl CI tests. r=handyman
* Revert some partial webgl+oop+vr code.
* More missing FuncScope.
* Fix compile errors.
* Refactor some ifdef'd code to branch and compile on all platforms.
* -Wno-error=unused-result for GCC to allow for (void)MustUse().

Depends on D55739

Differential Revision: https://phabricator.services.mozilla.com/D56169

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:26 +00:00
Jeff Gilbert 0dfd1a2a0d Bug 1477756 - Fix all webgl regression tests according to CI. r=handyman
(This is a combination of 31 commits)

* Fix Linux compilation.

* Fix mac compilation.

* CI compile fixes.

* printf's size_t is %zu. %tu would be unsigned ptrdiff_t.

* No non-ref Maybe args.

* MOZ_CRASH for noreturn

* Handle implied texture sizes, rewrite comment stripping.

* Replace e.g. WebGLProgramInner with simpler webgl::ProgramKeepAlive.

* Bounce ValidateProgram call off driver.

* Uniform name length limit, cubemap fb-attach, non-array uniforms, undersized texImage views.

* alignas for uint8_t[sizeof(float)*N] pun buffers.

* CC fixes?

* Fill attrib0Active.

* Repair max-warnings limit.

* This is basically required in order for CI's logging to not explode.

* Don't cache WebGLMemoryTracker.

* Deleted prog/shader error, no texSubImage(null), client-side fingerprint resist for exts.

* Fix GetUniformIndices and MakeRangeFromView.

* CC Traverse base class from within derived class to fix leaking the world. :(

* PauseTransformFeedback
* TexImage video fastpath
* GetFragLocation for arrays
* Forbid BindBufferRange during TF

* Mark tests and fix RBAB query and test.

* Change(!) query deletion behavior to match spec.
* Mark conformance2/query/query.html failing for now.

* Implicitly EndQuery on DeleteQuery while spec is in flux.

* Fix error code for test.

* RAII LruPosition for WebGL context limit.

* Include std::list.

* Mark CompileResult and LinkResult.pending as false when retrieved.

* Hold strong-ref to NotLostData during Run<> to prevent LoseContext=>UAF.

* Don't assume GetUniformLocation(foo+'[0]') means foo is an array.
* Don't assume !mCanvasElement means !!mOffscreenCanvas.

* Handle composition while context-lost.

* All non-value-init members must be const or have inline init.

* Mark passing tests on Linux.

Depends on D54019

Differential Revision: https://phabricator.services.mozilla.com/D55739

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:23 +00:00
Jeff Gilbert e1d0fe64bb Bug 1477756 - Client-side bindings mirror for precise CC, and merge similar codepaths. r=handyman
* Context loss using RAII
* Move Program reflection Client-side

Depends on D54018

Differential Revision: https://phabricator.services.mozilla.com/D54019

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:16 +00:00
David Parks 198fa063c2 Bug 1477756 - Initial out-of-process WebGL implementation. r=mccr8,handyman
Splits WebGLContext into ClientWebGLContext and HostWebGLContext.  The Client enables the JS-control of a WebGL context in a content procecss while the Host executes the WebGL graphics operations (via a WebGLContext that maintains much of the existing code) in the compositor process.  At this point, the cross-process behavior is disabled -- this series of patches is an incremental step toward that final goal.

Differential Revision: https://phabricator.services.mozilla.com/D54018

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:14 +00:00
sotaro 68439d9c26 Bug 1598998 - Fix CanvasContextType::ImageBitmap handling r=nical
Differential Revision: https://phabricator.services.mozilla.com/D56348

--HG--
extra : moz-landing-system : lando
2020-01-08 01:12:50 +00:00
Emilio Cobos Álvarez 86a70df5d7 Bug 1607006 - Remove utf-16 versions of nsCSSProps::LookupProperty* and ServoCSSParser::ComputeColor. r=bzbarsky
Now that we have UTF8String in the WebIDL, we can remove quite a few of the
conversions. Do that, and lift the remaining string conversions up as needed.

Also deindent Servo_ComputeColor while touching it.

Most of the remaining copies are because either bug 1606994, or because they're
WebIDL attributes that we still need to serialize back as UTF-16 (bug 1606995).

Differential Revision: https://phabricator.services.mozilla.com/D58687

--HG--
extra : moz-landing-system : lando
2020-01-08 01:21:30 +00:00
Edwin Takahashi 954f7f115c Bug 1599937 - mark test_2_conformance__textures__misc__texture-corner-case-videos.html with fail-if annotation for ubuntu1804 r=jmaher,jgilbert
Changes:

Mark this test as expected failure on ubuntu1804 and webrender.

Differential Revision: https://phabricator.services.mozilla.com/D58896

--HG--
extra : moz-landing-system : lando
2020-01-08 00:07:23 +00:00
Jeff Gilbert 3a05991f4e Bug 1606039 - Enable webgl1-core/1-ext/2-core tests on Android HW. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D58906

--HG--
extra : moz-landing-system : lando
2020-01-07 19:19:38 +00:00
Mihai Alexandru Michis c8ca91e7db Backed out changeset 67142a370d4a (bug 1598998) for causing failures in ImageBitmapRenderingContext.cpp
CLOSED TREE

--HG--
extra : histedit_source : 1e4895b3c8773f7881b99f1ab0fca9c6b64b7644
2020-01-07 01:49:59 +02:00
sotaro 374fa2d1ea Bug 1598998 - Fix CanvasContextType::ImageBitmap handling r=nical
Differential Revision: https://phabricator.services.mozilla.com/D56348

--HG--
extra : moz-landing-system : lando
2020-01-06 10:14:15 +00:00
Tom Schuster 989660da15 Bug 1605854 - Remove uneval/toSource from DOM tests. r=smaug
Using JSON.stringify in dom/tests/mochitest/chrome/test_clonewrapper.xhtml might not be the best solution, because
the testObject contains ImageData objects.

Differential Revision: https://phabricator.services.mozilla.com/D58645

--HG--
extra : moz-landing-system : lando
2020-01-06 13:09:27 +00:00
Jeff Gilbert 744a29510c Bug 1605822 - Run webgl1+2 tests on desktop CI. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D58286

--HG--
extra : moz-landing-system : lando
2019-12-28 01:22:39 +00:00
Noemi Erli 1207344cf7 Backed out changeset 8d01e0e7acc8 (bug 1605822) for causing Android mochitest failures 2019-12-28 03:18:42 +02:00
Jeff Gilbert 634295547d Bug 1605822 - Run webgl1+2 tests on desktop CI. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D58286

--HG--
extra : moz-landing-system : lando
2019-12-28 00:36:55 +00:00
Jeff Gilbert aaf7fcc370 Bug 1604622 - Use float16/float32 sized formats on es3+. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D58179

--HG--
extra : moz-landing-system : lando
2019-12-27 00:08:41 +00:00